mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-07-10 07:18:33 +00:00
add jwt args
This commit is contained in:
parent
3c970ff8ab
commit
64f0bf6d4f
@ -50,6 +50,8 @@ def _download_api_json(self, site_url, path, video_id, headers={}, **kwargs):
|
|||||||
'fc_use_device': 'null',
|
'fc_use_device': 'null',
|
||||||
**headers,
|
**headers,
|
||||||
}
|
}
|
||||||
|
if jwt_arg := self._configuration_arg('jwt_token', ie_key='niconicochannelplus', casesense=True):
|
||||||
|
headers['Authorization'] = f'Bearer {jwt_arg}'
|
||||||
return self._download_json(f'{settings["api_base_url"]}{path}', video_id, headers=headers, **kwargs)
|
return self._download_json(f'{settings["api_base_url"]}{path}', video_id, headers=headers, **kwargs)
|
||||||
|
|
||||||
def _get_fanclub_site_id(self, url):
|
def _get_fanclub_site_id(self, url):
|
||||||
|
Loading…
Reference in New Issue
Block a user