Skip to content

Commit 7727521

Browse files
committed
X
1 parent a6a2119 commit 7727521

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ static String getDeobfuscationFunction(@Nonnull final String javaScriptPlayerCod
198198
static String getThrottlingParameterFromStreamingUrl(@Nonnull final String streamingUrl) {
199199
// Do a quick check if the n parameter is even present, if not abort
200200
// This improves performance by 60-900x
201-
if (!streamingUrl.contains("&n=") || !streamingUrl.contains("?n=")) {
201+
if (!streamingUrl.contains("&n=") && !streamingUrl.contains("?n=")) {
202202
return null;
203203
}
204204
try {

0 commit comments

Comments
 (0)