diff options
author | Elyse <26639800+elyse0@users.noreply.github.com> | 2022-08-22 13:45:46 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-23 00:15:46 +0530 |
commit | b85703d11a150967b9430f38ac938c7f41a4ad76 (patch) | |
tree | 0e9f97c1d7b2d2de4bf7fe8d5db9de6e4e4a3fd0 /yt_dlp/extractor/redbee.py | |
parent | 992dc6b4863d0e60f2a1ce3933f67814d8a17f8d (diff) | |
download | hypervideo-pre-b85703d11a150967b9430f38ac938c7f41a4ad76.tar.lz hypervideo-pre-b85703d11a150967b9430f38ac938c7f41a4ad76.tar.xz hypervideo-pre-b85703d11a150967b9430f38ac938c7f41a4ad76.zip |
[extractor/rtbf] Fix jwt extraction (#4738)
Closes #4683
Authored by: elyse0
Diffstat (limited to 'yt_dlp/extractor/redbee.py')
-rw-r--r-- | yt_dlp/extractor/redbee.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/yt_dlp/extractor/redbee.py b/yt_dlp/extractor/redbee.py index 89a10448e..ee510eb40 100644 --- a/yt_dlp/extractor/redbee.py +++ b/yt_dlp/extractor/redbee.py @@ -11,6 +11,7 @@ from ..utils import ( int_or_none, strip_or_none, traverse_obj, + try_call, unified_timestamp, ) @@ -255,7 +256,7 @@ class RTBFIE(RedBeeBaseIE): 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, |