Skip to content

Commit caabbe9

Browse files
committed
Fetch with android only when there's a PoToken.
1 parent fbee94e commit caabbe9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeStreamExtractor.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,9 @@ public void onFetchPage(@Nonnull final Downloader downloader)
818818
final PoTokenResult androidPoTokenResult = noPoTokenProviderSet ? null
819819
: providerInstance.getAndroidClientPoToken();
820820

821-
fetchAndroidClient(localization, contentCountry, videoId, androidPoTokenResult);
821+
if (androidPoTokenResult != null) {
822+
fetchAndroidClient(localization, contentCountry, videoId, androidPoTokenResult);
823+
}
822824

823825
final byte[] nextBody = JsonWriter.string(
824826
prepareDesktopJsonBuilder(localization, contentCountry)

0 commit comments

Comments
 (0)