mirror of
https://github.com/yt-dlp/yt-dlp
synced 2024-12-27 21:59:17 +01:00
add jwt args
This commit is contained in:
parent
3c970ff8ab
commit
64f0bf6d4f
1 changed files with 2 additions and 0 deletions
|
@ -50,6 +50,8 @@ class NiconicoChannelPlusBaseIE(InfoExtractor):
|
|||
'fc_use_device': 'null',
|
||||
**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)
|
||||
|
||||
def _get_fanclub_site_id(self, url):
|
||||
|
|
Loading…
Reference in a new issue