YoutubeThrottlingDecrypter: Patch regex
This commit is contained in:
parent
641a447d9b
commit
ed0a07af4e
1 changed files with 1 additions and 1 deletions
|
@ -161,7 +161,7 @@ public class YoutubeThrottlingDecrypter {
|
||||||
@Nonnull
|
@Nonnull
|
||||||
private static String parseWithRegex(final String playerJsCode, final String functionName)
|
private static String parseWithRegex(final String playerJsCode, final String functionName)
|
||||||
throws Parser.RegexException {
|
throws Parser.RegexException {
|
||||||
final Pattern functionPattern = Pattern.compile(functionName + "=function(.*?}};)\n",
|
final Pattern functionPattern = Pattern.compile(functionName + "=function(.*?};)\n",
|
||||||
Pattern.DOTALL);
|
Pattern.DOTALL);
|
||||||
return "function " + functionName + Parser.matchGroup1(functionPattern, playerJsCode);
|
return "function " + functionName + Parser.matchGroup1(functionPattern, playerJsCode);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue