diff options
Diffstat (limited to 'yt_dlp_plugins')
-rwxr-xr-x | yt_dlp_plugins/extractor/radiko.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/yt_dlp_plugins/extractor/radiko.py b/yt_dlp_plugins/extractor/radiko.py index 7deade6..d31c441 100755 --- a/yt_dlp_plugins/extractor/radiko.py +++ b/yt_dlp_plugins/extractor/radiko.py @@ -448,9 +448,14 @@ class _RadikoBaseIE(InfoExtractor): key_length = int(auth1_header["X-Radiko-KeyLength"]) key_offset = int(auth1_header["X-Radiko-KeyOffset"]) + self.write_debug(f"KeyLength: {key_length}") + self.write_debug(f"KeyOffset: {key_offset}") + raw_partial_key = self._FULL_KEY[key_offset:key_offset + key_length] partial_key = base64.b64encode(raw_partial_key) + self.write_debug(partial_key) + headers = { **info, "X-Radiko-AuthToken": auth_token, |