mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2025-04-27 23:40:36 +05:30
Changed the regex to account for
nonword characters
This commit is contained in:
parent
7484b6a098
commit
36ebb633a4
@ -36,7 +36,7 @@ public class YoutubeThrottlingDecrypter {
|
||||
|
||||
private static final Pattern N_PARAM_PATTERN = Pattern.compile("[&?]n=([^&]+)");
|
||||
private static final Pattern FUNCTION_NAME_PATTERN = Pattern.compile(
|
||||
"b=a\\.get\\(\"n\"\\)\\)&&\\(b=(\\w+)\\(b\\),a\\.set\\(\"n\",b\\)");
|
||||
"b=a\\.get\\(\"n\"\\)\\)&&\\(b=(\\S+)\\(b\\),a\\.set\\(\"n\",b\\)");
|
||||
|
||||
private static final Map<String, String> nParams = new HashMap<>();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user