Repository navigation
fix(subtitles): let the only subtitle track be chosen on the iPhone detail page - #637
Merged
Merged
Conversation
…etail page When a file has one subtitle track and nothing is selected, the iPhone detail row showed that track (for example "English · ASS") and disabled the selector. Under the default Auto mode that track does not play unless it carries the default flag or matches a subtitle language preference, so viewers started playback expecting subtitles that the plan had turned off, and had no way to turn them on before playing. The row now reads "Auto" until a track is chosen and opens the Auto / Off / track sheet for a single track, as the Apple TV detail menu already does. ASS rendering itself was not at fault: once selected, the embedded ASS cues render in sync. Found during the Series validation, silo-apple#337 C10
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 59 minutes. View limit detailsLimit details: You’ve used the included review currently available. Review configuration: ⚙️ Run configuration
📒 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 |
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Related issue: N/A
Validation tasks: changes #337 C10
When a file has one subtitle track and nothing is selected, the iPhone detail row showed that track (for example "English · ASS") and disabled the selector. Under the default Auto mode that track doesn't play unless it has the default flag or matches a language preference, so viewers expected subtitles that never appeared and couldn't turn them on before playing. This looked like ASS not rendering; ASS renders fine once selected.
Approach
The row reads "Auto" until a track is chosen and opens the Auto / Off / track sheet for a single track, as the Apple TV detail menu already does.
Validation
scripts/ci/check-no-api-v1.sh: pass.main(6242652): the full iOS unit suite ran 2,691 tests. The only failures areArtworkURLTests.testDeliveryCapabilityOnIOSUsesV2RouteAndResetsandImageSizeCapabilityTests.testResetClearsCapability, which fail the same way onmain. tvOSbuild-for-testingand the macOS build succeed.Simulator screenshots (iOS 26.5, tvOS 26.5):
Risks
None identified.
Checklist
AI Disclosure
mainat medium effort, checking behaviour, platform guards (iOS, tvOS, macOS), tests and commit hygiene. No findings.Note
Fix single subtitle track selection on iOS detail page
shouldEnableSubtitleSelectorin DetailPlaybackFormatting.swift now enables the selector with at least one subtitle track, not more than one. A single track stays selectable because Auto can resolve to Off.subtitleValueLabelnow returnsAutowhen no subtitle index is chosen and no auto-resolution preview exists, instead of naming the only track.Autorather than the track name. Versions with no tracks or no version remain disabled.Macroscope summarized 80e79b1.