mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2024-12-13 13:50:33 +05:30
YoutubeThrottlingDecrypter: Patch regex
This commit is contained in:
parent
641a447d9b
commit
ed0a07af4e
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user