1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-06-27 08:58:30 +00:00

formatting

This commit is contained in:
bashonly 2025-06-27 03:38:25 +00:00 committed by GitHub
parent 4f208f7151
commit fcf614b829
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -21,8 +21,7 @@ class KickBaseIE(InfoExtractor):
def _api_headers(self): def _api_headers(self):
token = traverse_obj( token = traverse_obj(
self._get_cookies('https://kick.com/'), self._get_cookies('https://kick.com/'),
('session_token', 'value', {urllib.parse.unquote}), ('session_token', 'value', {urllib.parse.unquote}))
)
return {'Authorization': f'Bearer {token}'} if token else {} return {'Authorization': f'Bearer {token}'} if token else {}
def _call_api(self, path, display_id, note='Downloading API JSON', headers={}, **kwargs): def _call_api(self, path, display_id, note='Downloading API JSON', headers={}, **kwargs):