From 6c4c9fe0551cf50578fbeed60477cab44d7ca85f Mon Sep 17 00:00:00 2001 From: garret Date: Sat, 29 Jul 2023 17:38:33 +0100 Subject: add debug incantations to check for proper key offset/length --- yt_dlp_plugins/extractor/radiko.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'yt_dlp_plugins') 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, -- cgit v1.2.3-70-g09d2