Skip to content
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

_static_decrypt_signature function in youtube.py #1511

Closed
RealDeviil opened this issue Sep 26, 2013 · 3 comments
Closed

_static_decrypt_signature function in youtube.py #1511

RealDeviil opened this issue Sep 26, 2013 · 3 comments

Comments

@RealDeviil
Copy link

@RealDeviil RealDeviil commented Sep 26, 2013

Are you guys no longer updating the decryption code for each signature length in the '_static_decrypt_signature' function in youtube.py?

I noticed that the code for signature length 83 (in that function) is no longer working?

If you are no longer updating this code, or you're phasing out this method in favor of automatic signature decryption, could you kindly explain how I can continue to manually generate the signature decryption code found in _static_decrypt_signature?

Thanks!

@phihag
Copy link
Contributor

@phihag phihag commented Sep 27, 2013

We are phasing out static signatures, but we simply hadn't noticed the 83 change, fixed. Internally, we use the --youtube-print-sig-code flag to generate the static signature code. However, we make no guarantees that that flag will continue to exist, or have any kind of stable output format. There are only a couple of URLs (most prominently, the age restricted ones, see #1495 ) that fall back to the static signatures.

@phihag phihag closed this in 920de7a Sep 27, 2013
@RealDeviil
Copy link
Author

@RealDeviil RealDeviil commented Sep 27, 2013

Thanks a lot! Where can I find the code that handles that flag: --youtube-print-sig-code ?

I've written some PHP software that does a lot of what youtube-dl does, and I'd really like to learn how you guys were doing manual decryption code updates (prior to introducing the automated signature decryption). I'm still doing manual decryption code updates for my software -- for now.

Perhaps at some point, I might try to translate your "automatic-signatures" commit code from Python to PHP. But I need to learn some more Python before I attempt that. ;-)

@phihag
Copy link
Contributor

@phihag phihag commented Sep 27, 2013

The --youtube-print-sig-code implementation is pretty boring.

If you port the automatic signature exctraction to php, please drop me an email with a link to the repository. We'll find a way to link to it then - this is a forum about youtube-dl, and we'd like to keep off-topic discussions off.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.