Skip to content

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

Merged
TobiGr merged 1 commit intoTeamNewPipe:devfrom
AudricV:yt_fix-n-param-decode-function-extraction
Oct 5, 2024
Merged

[YouTube] Fix extraction of n param deobfuscation function name#1231
TobiGr merged 1 commit intoTeamNewPipe:devfrom
AudricV:yt_fix-n-param-decode-function-extraction

Conversation

@AudricV
Copy link
Copy Markdown
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 or PR 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
@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 or PR 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