TeamNewPipe / NewPipeExtractor

NewPipe's core library for extracting data from streaming sites
GNU General Public License v3.0
1.36k stars 405 forks source link

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

Open AudricV opened 3 days ago

AudricV commented 3 days ago

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.