Skip to content

Preserve repeated entries in M3U playlists - #2155

Merged
anilbeesetti merged 1 commit into
mainfrom
research/issue-2154-media-apps
Nov 28, 2026
Merged

anilbeesetti merged 1 commit into
mainfrom
research/issue-2154-media-apps

Conversation

@anilbeesetti

Copy link
Copy Markdown
Owner

Summary

M3U imports drop events that reuse a stream URL. Preserve each occurrence in source order and use its own database ID for selection, queue position, and resume history. Database migration 13 → 14 preserves existing playlist rows and metadata. Refresh previously imported playlists to recover omitted entries.

Fixes #2154.

Evidence

  • Before, the parser kept four of the six entries in the reported playlist.
  • After, the Android 15 (API 35) emulator imported all six, played Events 3 and 5 from their own queue positions, and resumed Event 3 after refresh.
  • ./gradlew assembleDebug test ktlintCheck passed. Targeted database migration, playlist DAO, and playlist detail instrumentation passed on API 35. TV-only cases were skipped.

Merge risk

The database migration is forward-only. Refresh matches repeated URLs by title, so renaming a repeated entry can reset its resume history.

Created with GPT-6.2 Sol in T3 Code through Codex.

@anilbeesetti
anilbeesetti merged commit 55ac9e5 into main Nov 28, 2026
2 checks passed
SeveriT pushed a commit to SeveriT/Overtime-Android that referenced this pull request Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] m3u playlist fom url strips duplicate links

1 participant