mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-09-04 18:09:36 +02:00
[extractor/rtbf] Fix jwt extraction (#4738)
Closes #4683 Authored by: elyse0
This commit is contained in:
parent
992dc6b486
commit
b85703d11a
@ -11,6 +11,7 @@
|
||||
int_or_none,
|
||||
strip_or_none,
|
||||
traverse_obj,
|
||||
try_call,
|
||||
unified_timestamp,
|
||||
)
|
||||
|
||||
@ -255,7 +256,7 @@ def _get_formats_and_subtitles(self, url, media_id):
|
||||
if not login_token:
|
||||
self.raise_login_required()
|
||||
|
||||
session_jwt = self._download_json(
|
||||
session_jwt = try_call(lambda: self._get_cookies(url)['rtbf_jwt'].value) or self._download_json(
|
||||
'https://login.rtbf.be/accounts.getJWT', media_id, query={
|
||||
'login_token': login_token.value,
|
||||
'APIKey': self._GIGYA_API_KEY,
|
||||
|
Loading…
Reference in New Issue
Block a user