[YouTube] add new signature regex

Adds a new regex to find the signature deobfuscation function, which
works for the new `20830619` player.

Closes: https://github.com/TeamNewPipe/NewPipeExtractor/issues/1287
Ref: https://github.com/TeamNewPipe/NewPipeExtractor/issues/1287#issuecomment-2764573093
pull/1290/head
FineFindus 2025-03-31 14:49:53 +02:00
rodzic 0b99100dbd
commit 0e54ccb439
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 64873EE210FF8E6B
1 zmienionych plików z 1 dodań i 0 usunięć
extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube

Wyświetl plik

@ -24,6 +24,7 @@ final class YoutubeSignatureUtils {
private static final Pattern[] FUNCTION_REGEXES = {
// CHECKSTYLE:OFF
Pattern.compile("\\b(?:[a-zA-Z0-9_$]+)&&\\((?:[a-zA-Z0-9_$]+)=([a-zA-Z0-9_$]{2,})\\(decodeURIComponent\\((?:[a-zA-Z0-9_$]+)\\)\\)"),
Pattern.compile("\\bm=([a-zA-Z0-9$]{2,})\\(decodeURIComponent\\(h\\.s\\)\\)"),
Pattern.compile("\\bc&&\\(c=([a-zA-Z0-9$]{2,})\\(decodeURIComponent\\(c\\)\\)"),
Pattern.compile("(?:\\b|[^a-zA-Z0-9$])([a-zA-Z0-9$]{2,})\\s*=\\s*function\\(\\s*a\\s*\\)\\s*\\{\\s*a\\s*=\\s*a\\.split\\(\\s*\"\"\\s*\\)"),