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.
Youtube occasionally serves unexpected signatures what leads to broken stream links (Error 403: Forbidden) #21028
Comments
|
did notice this too, its weird, what i got as deciphered signature
|
|
Getting the same problem with the video you posted, my signature is |
|
there's a new pram too if you look closely -
|
Looks like you're right - all the issues you've pointed except #18937 and #18804 has that weird signature like in my case. I personally in my library (that is basically youtube-dl on java) added a straight forward workaround for this problem - I'm just checking if signature contains a dot character (valid signatures are always have it) and if not I'm starting all the magic again. I've tested if for dozens of times and discovered that 1 or 2 attempts are enough to receive a proper signature. |
Checklist
Verbose log
Description
Hi guys! Yesterday I've found that youtube-dl from time to time serves me with broken links to the signatured audio/video streams, it happens not that often (2-3 times per 10-15 videos) but still quite uncomfortable so I decided to investigate this issue and here's what I've found - sometimes signatured video may have signature with format different than normal one and therefore (as I suppose) it can't be properly deciphered so the stream url leads to 403.
So instead of deciphered signature like this
549AFEF2E20684CF765993B37180D8F8C204EC09.63C2AE132DFDB8CD8A14DBD8310AE492969E4F2Cit may looks like this:
ALgxI2wwRQIgSD97zkwABo9JPAipp752LO891bTagLDq79fwYuq-7A4CIQD7lSb-j8BuvgmGEkCR2RV-gVtSIcz8NFz9JDIuJymoyw==(ciphered signature was: 7LgxI2wwRQIgSD9AzkwABo9JPAipp752LO891bTagLDq79fwYuq-7A4CIQD7lSb-j8BuvgmGEkCRVRV-gutSIcz8NFz9JDI=Jymoyw==w=uw=2)
How to reproduce:
youtube-dl -f 249 'https://www.youtube.com/watch?v=JGwWNGJdvx8' -v(video id JGwWNGJdvx8 is not obligatory, feel free to use any other signatured video id)Note: Usually it takes less than 10 attempts to reproduce this bug.