New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ValueError: Padding is incorrect. #4300
Comments
There's a bug in the HLS playlist parser: The BYTERANGE tag's offset value is optional but the parser always sets the value to 0 if it doesn't exist, which is obviously wrong. The However, there's another issue with how the Another problem is that the Let me quickly fix the HLS playlist parser first though before I take a look at the other issue. |
Checklist
Streamlink version
Latest stable release
Description
streamlink --http-header "User-Agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36" --http-header "Referer=https://www.log2base2.com/" "https://d2bzjah96pmxyc.cloudfront.net/C/Functions/Recursion/index.m3u8" best -l debug -o out1.ts
hls_audio_160k_v4.m3u8
has these#EXT-X-BYTERANGE
lines.#EXT-X-BYTERANGE:228432@0
#EXT-X-BYTERANGE:224288
#EXT-X-BYTERANGE:224864
...
And streamlink is setting these Range headers for HTTP GET requests.
Range: bytes=0-228431
Range: bytes=0-224287
Range: bytes=0-224863
...
Comment by:
@kikuyan
Debug log
The text was updated successfully, but these errors were encountered: