Skip to content

Commit ca9f193

Browse files
gechotoStypox
authored andcommitted
YoutubeThrottlingParameterUtils: make third regex longer to ensure it is a function which takes one parameter
1 parent c7d5988 commit ca9f193

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeThrottlingParameterUtils.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,14 @@ final class YoutubeThrottlingParameterUtils {
5858
* The third regex matches the following text, where we want SDa and the array index
5959
* accessed:
6060
*
61-
* WL(a),c=a.j[b]||null)&&(c=SDa[0](
61+
* WL(a),c=a.j[b]||null)&&(c=SDa[0](c)
6262
*/
6363
Pattern.compile(MULTIPLE_CHARS_REGEX + "\\("
6464
+ MULTIPLE_CHARS_REGEX + "\\)," + MULTIPLE_CHARS_REGEX + "="
6565
+ MULTIPLE_CHARS_REGEX + "\\." + MULTIPLE_CHARS_REGEX + "\\["
6666
+ MULTIPLE_CHARS_REGEX + "]\\|\\|null\\)&&\\(" + MULTIPLE_CHARS_REGEX + "=("
67-
+ MULTIPLE_CHARS_REGEX + ")" + ARRAY_ACCESS_REGEX + "\\("),
67+
+ MULTIPLE_CHARS_REGEX + ")" + ARRAY_ACCESS_REGEX
68+
+ "\\(" + MULTIPLE_CHARS_REGEX + "\\)"),
6869

6970
/*
7071
* The fourth regex matches the following text, where we want rma:

0 commit comments

Comments
 (0)