mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2025-04-28 07:50:34 +05:30
correct comment
This commit is contained in:
parent
1393644f44
commit
e0d39b606c
@ -175,7 +175,7 @@ final class YoutubeThrottlingParameterUtils {
|
|||||||
* Get the throttling parameter deobfuscation code of YouTube's base JavaScript file.
|
* Get the throttling parameter deobfuscation code of YouTube's base JavaScript file.
|
||||||
*
|
*
|
||||||
* @param javaScriptPlayerCode the complete JavaScript base player code
|
* @param javaScriptPlayerCode the complete JavaScript base player code
|
||||||
* @return the throttling parameter deobfuscation function name
|
* @return the throttling parameter deobfuscation function code
|
||||||
* @throws ParsingException if the throttling parameter deobfuscation code couldn't be
|
* @throws ParsingException if the throttling parameter deobfuscation code couldn't be
|
||||||
* extracted
|
* extracted
|
||||||
*/
|
*/
|
||||||
@ -238,14 +238,20 @@ final class YoutubeThrottlingParameterUtils {
|
|||||||
return function;
|
return function;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @param function
|
||||||
|
* @return
|
||||||
|
* @throws Parser.RegexException
|
||||||
|
*/
|
||||||
@Nonnull
|
@Nonnull
|
||||||
private static String fixupFunction(@Nonnull final String function)
|
private static String fixupFunction(@Nonnull final String function)
|
||||||
throws Parser.RegexException {
|
throws Parser.RegexException {
|
||||||
final String firstArgName = Parser
|
final String firstArgName = Parser
|
||||||
.matchGroup1(FUNCTION_ARGUMENTS_REGEX, function)
|
.matchGroup1(FUNCTION_ARGUMENTS_REGEX + "aba([a-z]\\d)", function)
|
||||||
.split(",")[0].trim();
|
.split(",")[0].trim();
|
||||||
final Pattern earlyReturnPattern = Pattern.compile(
|
final Pattern earlyReturnPattern = Pattern.compile(
|
||||||
EARLY_RETURN_REGEX + firstArgName + ";",
|
EARLY_RETURN_REGEX + firstArgName + "aba;",
|
||||||
Pattern.DOTALL);
|
Pattern.DOTALL);
|
||||||
final Matcher earlyReturnCodeMatcher = earlyReturnPattern.matcher(function);
|
final Matcher earlyReturnCodeMatcher = earlyReturnPattern.matcher(function);
|
||||||
return earlyReturnCodeMatcher.replaceFirst(";");
|
return earlyReturnCodeMatcher.replaceFirst(";");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user