Skip to content

Commit ed0a07a

Browse files
committed
YoutubeThrottlingDecrypter: Patch regex
1 parent 641a447 commit ed0a07a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ private static String parseWithParenthesisMatching(final String playerJsCode,
161161
@Nonnull
162162
private static String parseWithRegex(final String playerJsCode, final String functionName)
163163
throws Parser.RegexException {
164-
final Pattern functionPattern = Pattern.compile(functionName + "=function(.*?}};)\n",
164+
final Pattern functionPattern = Pattern.compile(functionName + "=function(.*?};)\n",
165165
Pattern.DOTALL);
166166
return "function " + functionName + Parser.matchGroup1(functionPattern, playerJsCode);
167167
}

0 commit comments

Comments
 (0)