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

[YouTube] Fix extraction of n param deobfuscation function name #1231

Merged

Conversation

AudricV
Copy link
Member

@AudricV AudricV commented Sep 29, 2024

This PR fixes the extraction of the deobfuscation function name for n parameter of streaming URLs for HTML5 clients, causing failure to extract any stream for embeddable age-restricted videos. It also improves existing regular expressions for this function name by using the constant representing multiple characters instead of adding the one or multiple characters token (+) manually in each regex for everything and not only function names.

Fixes TeamNewPipe/NewPipe#11382.

This commit adds two new regular expressions to parse the n parameter function.

It also improves existing regular expressions by using the constant representing
multiple characters instead of adding the one or multiple characters
token manually in each regex for everything and not only function names.
@AudricV AudricV added bug Issue is related to a bug youtube service, https://www.youtube.com/ labels Sep 29, 2024
@TobiGr TobiGr merged commit 5431069 into TeamNewPipe:dev Oct 5, 2024
3 of 4 checks passed
@AudricV AudricV deleted the yt_fix-n-param-decode-function-extraction branch October 5, 2024 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is related to a bug youtube service, https://www.youtube.com/
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[YouTube] Age restricted content not playing
3 participants