Skip to content

fix(player): stop autoplay before unaired episodes - #602

Merged
ProdigyV21 merged 1 commit into
ProdigyV21:mainfrom
Saelon600:fix/autoplay-unaired-episodes
Aug 24, 2026
Merged

fix(player): stop autoplay before unaired episodes#602
ProdigyV21 merged 1 commit into
ProdigyV21:mainfrom
Saelon600:fix/autoplay-unaired-episodes

Conversation

@Saelon600

Copy link
Copy Markdown

Closes #589.

Summary

  • Resolves the next episode's TMDB air date before the autoplay prompt can open.
  • Models the decision explicitly as Pending, Allowed, or Blocked so near-end resume cannot autoplay while metadata is still loading.
  • Allows episodes aired before or on the current date and blocks future, missing, malformed, or unavailable metadata from automatic advancement.
  • Preserves coroutine cancellation and resolves the target TMDB season/episode across season boundaries.

Why

Autoplay could advance into episodes that have not aired yet. A simple Boolean defaulting to allowed also creates a race where playback near the end can trigger before TMDB metadata returns.

Testing

  • past/today/future air dates
  • pending state does not open or consume the prompt
  • missing episode/date, blank/malformed date, and API failure
  • cancellation propagation
  • season-boundary target lookup
  • full Sideload unit suite, Kotlin compilation, and git diff --check

Policy

Unknown or unavailable air-date metadata blocks automatic advancement only; users can still choose episodes manually.

Scope

Android autoplay gating only. No subtitle, navigation, IPTV, backend, catalog, or app version changes.

@github-actions github-actions Bot added the area: android Changes to the Android app or Gradle build label Aug 24, 2026
Resolve the next episode air date before opening the autoplay prompt. Use explicit pending, allowed, and blocked states so near-end playback cannot race metadata loading, while keeping manual episode navigation available. Closes ProdigyV21#589.
@Saelon600
Saelon600 force-pushed the fix/autoplay-unaired-episodes branch from fe56996 to 4ed6311 Compare August 24, 2026 11:37
@ProdigyV21
ProdigyV21 merged commit 8a723fd into ProdigyV21:main Aug 24, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: android Changes to the Android app or Gradle build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: Autoplay continues on unaired episodes

3 participants