TeamNewPipe / NewPipeExtractor

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

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

Closed AudricV closed 1 month ago

AudricV commented 1 month 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.