kopia lustrzana https://github.com/TeamNewPipe/NewPipeExtractor
[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-2764573093pull/1290/head
rodzic
0b99100dbd
commit
0e54ccb439
extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube
|
@ -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*\\)"),
|
||||
|
|
Ładowanie…
Reference in New Issue