From ca9f1935d3ab985d866006f55bbdf0c09d08a3d0 Mon Sep 17 00:00:00 2001 From: gechoto <124326167+gechoto@users.noreply.github.com> Date: Mon, 6 Jan 2025 21:44:16 +0000 Subject: [PATCH] YoutubeThrottlingParameterUtils: make third regex longer to ensure it is a function which takes one parameter --- .../services/youtube/YoutubeThrottlingParameterUtils.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeThrottlingParameterUtils.java b/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeThrottlingParameterUtils.java index 832f9129d..fea444cdb 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeThrottlingParameterUtils.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeThrottlingParameterUtils.java @@ -58,13 +58,14 @@ final class YoutubeThrottlingParameterUtils { * The third regex matches the following text, where we want SDa and the array index * accessed: * - * WL(a),c=a.j[b]||null)&&(c=SDa[0]( + * WL(a),c=a.j[b]||null)&&(c=SDa[0](c) */ Pattern.compile(MULTIPLE_CHARS_REGEX + "\\(" + MULTIPLE_CHARS_REGEX + "\\)," + MULTIPLE_CHARS_REGEX + "=" + MULTIPLE_CHARS_REGEX + "\\." + MULTIPLE_CHARS_REGEX + "\\[" + MULTIPLE_CHARS_REGEX + "]\\|\\|null\\)&&\\(" + MULTIPLE_CHARS_REGEX + "=(" - + MULTIPLE_CHARS_REGEX + ")" + ARRAY_ACCESS_REGEX + "\\("), + + MULTIPLE_CHARS_REGEX + ")" + ARRAY_ACCESS_REGEX + + "\\(" + MULTIPLE_CHARS_REGEX + "\\)"), /* * The fourth regex matches the following text, where we want rma: