-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
CloudFlareStream: binascii.Error: Incorrect padding #26640
Comments
I stumbled accross this one as well and did some digging. Looks like this is caused by cloudflare not properly padding the base64 encoded data that end up in video_id. A workable fix is to add Basically we'll just pad the string going to urlsafe_b64decode ourselves so that the decoder is happy. |
Awesome! This fixed the issue on my end :) |
great! it worked for me as well! Thanks anyway!! |
|
Do you mean that the problem persisted also with python3 and that the proposed solution fixed it? |
with python3 the proposed solution fixed it ;) |
Great! would you please post the link of the video you were trying to download? To replicate the error for later submitting a PR |
sorry, that link has rotated out of my bash history |
Fixes ytdl-org/youtube-dl#26640 Authored by: haobinliang
Verbose log
Description
Video plays in browser but generates error in youtube-dl.
The text was updated successfully, but these errors were encountered: