Skip to content

Commit

Permalink
Fetch with android only when there's a PoToken.
Browse files Browse the repository at this point in the history
  • Loading branch information
FireMasterK committed Dec 12, 2024
1 parent fbee94e commit caabbe9
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,9 @@ public void onFetchPage(@Nonnull final Downloader downloader)
final PoTokenResult androidPoTokenResult = noPoTokenProviderSet ? null
: providerInstance.getAndroidClientPoToken();

fetchAndroidClient(localization, contentCountry, videoId, androidPoTokenResult);
if (androidPoTokenResult != null) {
fetchAndroidClient(localization, contentCountry, videoId, androidPoTokenResult);
}

final byte[] nextBody = JsonWriter.string(
prepareDesktopJsonBuilder(localization, contentCountry)
Expand Down

0 comments on commit caabbe9

Please sign in to comment.