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
|
@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 New Issue
Block a user