aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorgarret <garret@airmail.cc>2023-07-29 17:38:33 +0100
committergarret <garret@airmail.cc>2023-07-29 17:38:33 +0100
commit6c4c9fe0551cf50578fbeed60477cab44d7ca85f (patch)
tree09806fbaa44b6924abe31da5b5dab5c604efe955
parent17399eb39bdbdd6dbc814cb65a87c74b9338d234 (diff)
downloadyt-dlp-rajiko-6c4c9fe0551cf50578fbeed60477cab44d7ca85f.tar.gz
yt-dlp-rajiko-6c4c9fe0551cf50578fbeed60477cab44d7ca85f.tar.bz2
yt-dlp-rajiko-6c4c9fe0551cf50578fbeed60477cab44d7ca85f.zip
add debug incantations to check for proper key offset/length
-rwxr-xr-xyt_dlp_plugins/extractor/radiko.py5
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,