-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[Enhancement] Fix the decrypt function - the decryption of the encrypted videos #3245
Comments
Here are some videos that seem to cause this bug: The bug seems to currently affect some instances but not others. It is also possible that one of these videos works on one instance but not the other one as well. The instances on this list manage to play both. |
Late update: some invidious instances may or may not play those videos. None of them managed to play them reliably over a longer period of time. As far as I am aware only my Invidious instance is able to play them reliably because of the patch that I made so that it uses the Piped-Backend in the background to get its videoplayback urls. |
Is it known why it's not working? I have the same decryption method implemented in youtube-local and I'm getting 403s even though parsing the function is working fine. What is yt-dlp doing differently? It doesn't seem to be the nsig decryption (I used --verbose in yt-dlp, took one of the decrypted URLS, undid the nsig decryption, and it still loaded for this decryption-required age restricted video: https://www.youtube.com/watch?v=fV4LHzN_ZKY) |
Does not work for videos that require decryption because decryption is not working (giving 403) for some reason. Related invidious issue for decryption not working: iv-org/invidious#3245 Partial fix for #146
The decryption function is completely outdated, nowadays it's a big JavaScript file that need to be evaluated then the result is the decryption key. Someone tried to push a fix here: #2222 |
Was fixed with the introduction of inv_sig_helper and will now be moved to invidious companion: #4985 |
Currently, the decrypt function doesn't work anymore.
For example, encrypted age-restricted videos won't load anymore as we fetch them not through the special ANDROID user agent that allow to have decrypted URLs for all videos, but instead through the TVHTML5_SIMPLY_EMBEDDED_PLAYER agent.
The text was updated successfully, but these errors were encountered: