From ed0a07af4e1ed95d1203a5a6f21b5c5da3ed0506 Mon Sep 17 00:00:00 2001 From: litetex <40789489+litetex@users.noreply.github.com> Date: Sun, 21 Aug 2022 20:15:53 +0200 Subject: [PATCH] YoutubeThrottlingDecrypter: Patch regex --- .../extractor/services/youtube/YoutubeThrottlingDecrypter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeThrottlingDecrypter.java b/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeThrottlingDecrypter.java index cb807dc17..d6ae18112 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeThrottlingDecrypter.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeThrottlingDecrypter.java @@ -161,7 +161,7 @@ public class YoutubeThrottlingDecrypter { @Nonnull private static String parseWithRegex(final String playerJsCode, final String functionName) throws Parser.RegexException { - final Pattern functionPattern = Pattern.compile(functionName + "=function(.*?}};)\n", + final Pattern functionPattern = Pattern.compile(functionName + "=function(.*?};)\n", Pattern.DOTALL); return "function " + functionName + Parser.matchGroup1(functionPattern, playerJsCode); }