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

Videos That Formerly Played No Longer Do #54

Open
MeanLauraJean opened this issue Sep 12, 2018 · 6 comments
Open

Videos That Formerly Played No Longer Do #54

MeanLauraJean opened this issue Sep 12, 2018 · 6 comments

Comments

@MeanLauraJean
Copy link

Youtube videos that used to successfully play via the plugin no longer do. An example would be:
https://www.youtube.com/watch?v=KtlgYxa6BMU

Any thoughts on why this worked and now no longer does?

Thanks,
Laura

@mddepew
Copy link
Contributor

mddepew commented Sep 17, 2018

The issue is signature decryption on certain copyrighted videos. This has been an issue in the past.

My logs are showing this error:
ERROR (video:258) - Cannot decrypt signature: 'NoneType' object has no attribute 'group'

@kolsys was able to come up with a clever fix last time. The details of how youtube signature decryption work are outside of my wheelhouse.

@mddepew
Copy link
Contributor

mddepew commented Sep 21, 2018

Well, signature decryption is a bit beyond me, but thankfully the folks at youtube-dl already have it fixed. I copied the regexes they use to pull out the signature decryption function and it's working again. You can pull from my fork at https://github.com/mddepew/YouTubeTV.bundle
There is an active PR to pull the fix into the main repo. #55

@MeanLauraJean
Copy link
Author

@mddepew looking good now, thank you :)

@MeanLauraJean
Copy link
Author

This is occurring again. Videos that used to play successfully no longer do. Same example:
https://www.youtube.com/watch?v=KtlgYxa6BMU

@YabberWalkie
Copy link

I put in a pull request that fixes this issue

@knifesk
Copy link

knifesk commented Apr 4, 2019

hey @Helza there's changes again. This played a video that wasn't playing.. but there's others that won't play anyway...

        sig_regexes = (r'(["\'])signature\1\s*,\s*(?P<sig>[a-zA-Z0-9$]+)\(',
                     r'\.sig\|\|(?P<sig>[a-zA-Z0-9$]+)\(',
                     r'yt\.akamaized\.net/\)\s*\|\|\s*.*?\s*c\s*&&\s*d\.set\([^,]+\s*,\s*(?:encodeURIComponent\s*\()?(?P<sig>[a-zA-Z0-9$]+)\(',
                     r'\bc\s*&&\s*d\.set\([^,]+\s*,\s*(?:encodeURIComponent\s*\()?\s*(?P<sig>[a-zA-Z0-9$]+)\(',
                     r'\bc\s*&&\s*d\.set\([^,]+\s*,\s*\([^)]*\)\s*\(\s*(?P<sig>[a-zA-Z0-9$]+)\(')

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

No branches or pull requests

4 participants