Skip to content

fix(subtitles): let the only subtitle track be chosen on the iPhone detail page - #637

Merged
Quick104 merged 1 commit into
Silo-Server:mainfrom
Rhainland:fix/ass-subtitles-render
Oct 6, 2026
Merged

Quick104 merged 1 commit into
Silo-Server:mainfrom
Rhainland:fix/ass-subtitles-render

Conversation

@Rhainland

@Rhainland Rhainland commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Unit tests for the row label: pass.
  • Manual, iPhone simulator: a single-ASS-track episode shows "Auto"; choosing the track renders its cues in sync.
  • scripts/ci/check-no-api-v1.sh: pass.
  • All 22 app fixes from this validation run, merged together on main (6242652): the full iOS unit suite ran 2,691 tests. The only failures are ArtworkURLTests.testDeliveryCapabilityOnIOSUsesV2RouteAndResets and ImageSizeCapabilityTests.testResetClearsCapability, which fail the same way on main. tvOS build-for-testing and the macOS build succeed.
  • Local builds used Swift 6.3.3, which needs the ThumbHash type annotations from fix(build): annotate ThumbHash cosine tables so Swift 6.3.3 can type-check them #608 to compile. That change was applied locally and is not part of this PR.

Simulator screenshots (iOS 26.5, tvOS 26.5):

a20-ass

Risks

None identified.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.

AI Disclosure

  • Harness: Claude Code, running in T3 Code
  • Tool(s): Claude Code subagents, xcodebuild, Xcode Simulator (simctl, Maestro), GitHub CLI
  • Model(s): claude-opus-5-5
  • Involvement: Fully AI-generated, human verified
  • Adversarial review: A separate Claude Code reviewer agent (claude-opus-5-5) read this branch's diff against main at 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

  • shouldEnableSubtitleSelector in 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.
  • subtitleValueLabel now returns Auto when no subtitle index is chosen and no auto-resolution preview exists, instead of naming the only track.
  • Adds and updates tests in DetailVersionSelectionTests.swift and SelectedMediaRuntimeTests.swift.
  • Behavioral Change: a version with a single subtitle track now shows an enabled selector; unselected state labels read Auto rather than the track name. Versions with no tracks or no version remain disabled.

Macroscope summarized 80e79b1.

…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
@coderabbitai

coderabbitai Bot commented Oct 5, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 63051fd9-b72a-4da3-bc69-7458d63a40eb
📥 Commits

Reviewing files that changed from the base of the PR and between 6242652 and 80e79b1.

📒 Files selected for processing (3)
  • iosApp/Tests/DetailVersionSelectionTests.swift
  • iosApp/Tests/SelectedMediaRuntimeTests.swift
  • iosApp/iosApp/Screens/Detail/DetailPlaybackFormatting.swift
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Rhainland Rhainland mentioned this pull request Oct 5, 2026
11 tasks
@silo-kody

silo-kody Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@Quick104
Quick104 merged commit 39dd04a into Silo-Server:main Oct 6, 2026
6 checks passed
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.

2 participants