fomat info: add bot check value

This commit is contained in:
Yuriy Liskov
2025-06-19 02:53:27 +03:00
parent c99b9324d2
commit 427b80d321
2 changed files with 4 additions and 4 deletions

View File

@@ -354,10 +354,10 @@ public class VideoLoaderController extends BasePlayerController {
mSuggestionsController.loadSuggestions(getVideo());
bgImageUrl = getVideo().getBackgroundUrl();
if (formatInfo.isHistoryBroken()) { // bot check error or the video is hidden
if (formatInfo.isBotCheckError()) {
YouTubeServiceManager.instance().applyNoPlaybackFix();
scheduleRebootAppTimer(5_000);
} else { // 18+ video
} else { // 18+ video or the video is hidden/removed
scheduleNextVideoTimer(5_000);
}
} else if (acceptDashVideo(formatInfo)) {
@@ -858,7 +858,7 @@ public class VideoLoaderController extends BasePlayerController {
return;
}
// Force to all subsequent videos in section playlist row
// Force to all subsequent videos in section playlist row (e.g. on Home)
if (previous.isSectionPlaylistEnabled(getContext())) {
previous.forceSectionPlaylist = false;
next.forceSectionPlaylist = true;