Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Decryption Key Length 82 changed #1539
Comments
|
Can you provide an example URL that's affected by this problem? |
|
We should really not be using lengths but js player version names. |
|
Run PIb6AZdTr-A with --youtube-print-sig-code option to get signature decryption code. I noticed it's different to the current 82 length code. I'm also using automatic extraction as first option, but I thought we wanted to keep the static keys up to date as fallback option.. |
|
@FiloSottile we currently use the player version with the automatic signature decryption, we fallback to the old system if it founds an error. We could remove the static signature decryption for normal videos (but keep it for age-gate videos). If we fallback to it, the algorithms will probably be outdated, we would then report the problem right there, instead of getting a 403 error during the download. |
New youtube static decryption code for len(s) == 82:
return s[12] + s[79:12:-1] + s[80] + s[11::-1]