Skip to content

Commit

Permalink
Backported fixes from #864
Browse files Browse the repository at this point in the history
  • Loading branch information
litetex committed Jun 24, 2022
1 parent 1987678 commit c6b4e06
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -841,11 +841,14 @@ public void onFetchPage(@Nonnull final Downloader downloader)
.getBytes(StandardCharsets.UTF_8);
nextResponse = getJsonPostResponse(NEXT, body, localization);

if ((!isAgeRestricted && !isLive && !isPostLive)
// this will only be run for post-live and normal streams
if ((!isAgeRestricted && !isLive)
|| isAndroidClientFetchForced) {
try {
fetchAndroidMobileJsonPlayer(contentCountry, localization, videoId);
} catch (final Exception ignored) {
// Ignore exceptions related to ANDROID client fetch or parsing, as it is not
// compulsory to play contents
}
}

Expand All @@ -854,6 +857,8 @@ public void onFetchPage(@Nonnull final Downloader downloader)
try {
fetchIosMobileJsonPlayer(contentCountry, localization, videoId);
} catch (final Exception ignored) {
// Ignore exceptions related to IOS client fetch or parsing, as it is not
// compulsory to play contents
}
}
}
Expand Down

0 comments on commit c6b4e06

Please sign in to comment.