0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-12-22 06:00:00 +00:00

[ie/gofile] Fix token cookie bug

Authored by: bashonly
This commit is contained in:
bashonly 2023-10-04 12:44:13 -05:00
parent cc8d844152
commit 0730d5a966
No known key found for this signature in database
GPG key ID: 783F096F253D15B0

View file

@ -60,7 +60,7 @@ def _real_initialize(self):
account_data = self._download_json(
'https://api.gofile.io/createAccount', None, note='Getting a new guest account')
self._TOKEN = account_data['data']['token']
self._set_cookie('gofile.io', 'accountToken', self._TOKEN)
self._set_cookie('.gofile.io', 'accountToken', self._TOKEN)
def _entries(self, file_id):
query_params = {