add jwt args

This commit is contained in:
c-basalt 2024-12-15 05:16:46 -05:00
parent 3c970ff8ab
commit 64f0bf6d4f

View file

@ -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):