Repository navigation
fix(detail): resolve Auto for a series page episode like playback - #408
Conversation
On the series page, Auto showed and downloaded the selected episode's first version in server order, while Play on Auto resolved the last-played file, then the quality preference. A user who watches the version with subtitles could see and download a different one. Episodes now use the same resolution as the movie page and the player, moved into one shared detailDisplayVersionIndex helper, so the version Auto shows is the one Play streams and Download saves.
Code Review Completed! 🔥The code review was successfully completed based on your current configurations. Kody Guide: Usage and ConfigurationInteracting with Kody
Providing Context (Files & MCPs)Add these hints in your PR description (or a comment) to unlock deeper checks:
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
|
Warning Review limit reachedNext included review available in 14 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
An explicit pick returned before the empty-list check, so a series episode still loading its versions got an index into an empty list. Check for an empty list first and clamp an explicit pick to the list.
Code Review Completed! 🔥The code review was successfully completed based on your current configurations. Kody Guide: Usage and ConfigurationInteracting with Kody
Providing Context (Files & MCPs)Add these hints in your PR description (or a comment) to unlock deeper checks:
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
Clamping an out-of-range pick named the last file for Download while Play, which sends no file id for a stale pick, resolved another. A stale pick now names no version, as main did.
Code Review Completed! 🔥The code review was successfully completed based on your current configurations. Kody Guide: Usage and ConfigurationInteracting with Kody
Providing Context (Files & MCPs)Add these hints in your PR description (or a comment) to unlock deeper checks:
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
Problem
Related issue: Silo-Server/silo-server#1167
Validation tasks: changes #329 C1 (not yet run)
On the series page, the version row shows Auto as the selected episode's first version in server order, and the Download button saves that file. Play on Auto picks differently: the last-played file, then the quality preference. When the first-listed version is not the one the user watches, for example the one without subtitles, the page shows and downloads it while Play streams another.
Approach
Episodes now resolve Auto with the same rule as the movie page and the player (
selectPlaybackVersion). The movie page's resolution moved into one helper,detailDisplayVersionIndex, which both pages use, so the version Auto shows is the one Play streams and Download saves. An explicit pick behaves as before.Episode downloads also need #407 to succeed against current servers. iOS: Silo-Server/silo-apple#536. Server default for requests that name no file: Silo-Server/silo-server#1630.
Validation
androidAppunit tests: 683 of 684 pass, including 5 new tests for the Auto rule.ReflowStyleTest"line height flows from settings" fails the same way on unmodifiedmain.android-sharedunit tests pass (1581).:androidApp:assembleDebugpasses..srt) is listed first and was never played: the page shows "Auto - 1080p", the version Play on Auto streams; the previous code shows the first-listed 720p version. For an episode last played in 720p, Auto shows 720p with the English.srt. With fix(downloads): register episode downloads under their series #407 applied, Download saved the displayed version on Auto and the picked version after an explicit 720p pick.Screenshots
Series page on S1·E2, whose never-played 720p version (with
.srt) is listed first; Play on Auto streams the 1080p version. Before is the #407 build, whose version row matchesmain.Risks
Low. It changes which version Auto shows and downloads for series-page episodes; movie pages keep the same rule, moved into the shared helper.
Checklist
AI Disclosure
codex review --uncommitted) for independent review; Gradle, Android emulatorNote
Fix Auto version resolution for episode playback on series detail page
detailDisplayVersionIndexselector in MediaSelectors.kt. It returns an explicit valid index first, then resolves the last-played file while the preferred quality is still loading, and otherwise delegates to the shared playback version selection.Macroscope summarized 9ff9c37.