diff options
author | garret <garret@airmail.cc> | 2023-07-29 17:53:31 +0100 |
---|---|---|
committer | garret <garret@airmail.cc> | 2023-07-29 17:57:37 +0100 |
commit | 7700d64ab8f344c9d4b15d83bfe48b5914bf5461 (patch) | |
tree | 3ea90da4b276ed2df95ff72ab7d456c4fef5ddc1 /yt_dlp_plugins | |
parent | 6c4c9fe0551cf50578fbeed60477cab44d7ca85f (diff) | |
download | yt-dlp-rajiko-7700d64ab8f344c9d4b15d83bfe48b5914bf5461.tar.gz yt-dlp-rajiko-7700d64ab8f344c9d4b15d83bfe48b5914bf5461.tar.bz2 yt-dlp-rajiko-7700d64ab8f344c9d4b15d83bfe48b5914bf5461.zip |
encode b64 partialkey as ascii
fixes #14
new headers thing made b'bytes' into "b'bytes'", instead of just 'bytes'
so it sent eg `X-Radiko-Partialkey: b'9lOaAg+2TZRSF+IsiDnUJg=='`
likely a fix for this upstream soon, but will do the sensible thing and make it ascii myself
https://discord.com/channels/807245652072857610/1112613156934668338/1134879336512634880 (yt-dlp discord)
Diffstat (limited to 'yt_dlp_plugins')
-rwxr-xr-x | yt_dlp_plugins/extractor/radiko.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp_plugins/extractor/radiko.py b/yt_dlp_plugins/extractor/radiko.py index d31c441..0078562 100755 --- a/yt_dlp_plugins/extractor/radiko.py +++ b/yt_dlp_plugins/extractor/radiko.py @@ -452,7 +452,7 @@ class _RadikoBaseIE(InfoExtractor): 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) + partial_key = base64.b64encode(raw_partial_key).decode("ascii") self.write_debug(partial_key) |