Skip to content

Commit b74a39c

Browse files
committed
Reformat some code and don't use the clickTrackingParams in continuations of YouTube Music search results
The clickTrackingParams of YouTube Music search results are not needed to get continuations. This commit removes their use, which may improve privacy.
1 parent f8197da commit b74a39c

3 files changed

Lines changed: 111 additions & 64 deletions

File tree

extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeThrottlingDecrypter.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,13 @@ private String parseDecodeFunction(final String playerJsCode, final String funct
7979
}
8080
}
8181

82+
@Nonnull
8283
private String parseWithParenthesisMatching(final String playerJsCode, final String functionName) {
8384
final String functionBase = functionName + "=function";
8485
return functionBase + StringUtils.matchToClosingParenthesis(playerJsCode, functionBase) + ";";
8586
}
8687

88+
@Nonnull
8789
private String parseWithRegex(final String playerJsCode, final String functionName) throws Parser.RegexException {
8890
Pattern functionPattern = Pattern.compile(functionName + "=function(.*?}};)\n",
8991
Pattern.DOTALL);

0 commit comments

Comments
 (0)