YoutubeThrottlingDecrypter: Patch regex

This commit is contained in:
litetex 2022-08-21 20:15:53 +02:00
parent 641a447d9b
commit ed0a07af4e

View File

@ -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);
}