You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(home): show the series name on episode poster cards - #1055
Related issue: N/A
Validation tasks: changes #315 C1; changes #316 C1 (both passed on an earlier build; they need a re-test on a build with this change)
Other clients: Apple N/A (EpisodeCardCaption already leads with the series); Roku N/A (catalog.cards.fromItem already captions episodes with the series); Web N/A (episodeCardLabels already shows it)
On Android phone and Android TV, an episode in a poster row such as Recently Added TV shows only its episode title ("Episode 4"), so you cannot tell which show it belongs to. The web, Apple and Roku apps show the series name with the episode code and title. A user reported this for Recently Added on both Android apps.
It became common when the server started returning single new episodes as episode cards in Recently Added TV. Setups that import one episode at a time now get many of them.
Approach
SectionItem.episodeCardLabel() in shared decides what an episode card shows. The card title is the series name. The caption is the episode code, or the air date for sports series, followed by the episode title. The episode title is dropped when it only repeats the series name, as on Apple. The phone MediaRow and TV TvMediaRow poster branches use it with their existing caption formatters. On both apps the episode caption stays on one line so a long title cannot change the row height. Other captions are unchanged.
On TV the caption sits outside the focusable card, so the artwork's spoken label now includes it. Without that, two episodes of one show would sound identical.
Validation
Unit tests: testDebugUnitTest passes, including a new table test for the card label rules. Run with an English JVM locale; FormattersTest fails under a decimal-comma locale on this machine, which is unrelated.
Builds: :androidApp:assembleDebug and :androidTvApp:assembleDebug pass.
Manual: a local server on current main with a synthetic TV library: one show with a single new episode (an episode card) and one with three (a series card). Checked the Recently Added TV row on phone, tablet and foldable emulators (Android 16) and an Android TV emulator (Android 14), before on the v1.2.0-beta.32 release and after on this branch. TalkBack text for the TV card reads "Harbor Lights, S01E04 • Episode 4".
Surface and build: the Recently Added TV row on Home on an Android phone, a tablet, a foldable (open and folded) and Android TV. Before: release v1.2.0-beta.32. After: this branch's debug builds. Same server and library on every device.
Risks
Only poster cards for episodes change on screen. Movie and series cards, and the Continue Watching and Next Up cards, render as before. On Android TV, a box set card in a library grid now also speaks its caption (its years or watched count) after its name, because the TV card's spoken label includes any caption.
Follow-up: #1063 (the Explore all grids still label episodes by episode title alone; it builds on this PR).
Checklist
I read and can explain the complete diff.
This pull request addresses one concern.
The Evidence section shows every change a user can see, or how I checked a change nobody sees.
AI Disclosure
Harness: Claude Code (in T3 Code)
Tool(s): Claude Code; Codex CLI for one of the two review passes
Model(s): claude-opus-5-5; gpt-6.2-sol
Involvement: Fully AI-generated, human verified
Adversarial review: two independent reviews of the full diff (claude-opus-5-5 and gpt-6.2-sol, correctness, standards and spec), then a second pair on the follow-up commit. Fixed: an uncapped phone caption, a TV line cap that also hit other captions, a missing episode code when the title repeats the series, missing air-date labels, and the TV spoken label. Kody then flagged that the phone caption did not isolate a right-to-left title; it now does, and a third review pair on that change found nothing.
Poster rows such as Recently Added TV showed an episode card with only
its episode title, so phone and TV users could not tell which show it
came from. Episode cards now lead with the series name and put the
episode code (or air date) and episode title on a one-line caption, as
the web, Apple and Continue Watching cards do. The TV artwork's spoken
label includes the caption, so two episodes of one show sound
different.
Episode cards on Android and Android TV can display a series title with episode details as a caption. Shared label logic selects and normalizes episode titles. Card components also support caption line limits, and Android backdrop captions combine available episode tags and titles.
Adds EpisodeCardLabel and SectionItem.episodeCardLabel(). Tests cover distinct, repeated, and blank episode titles, missing series titles, and non-episode items.
Poster rows use the series title and a one-line episode caption when a label is available. MediaCard accepts a subtitle line limit. Backdrop captions show the available episode tag and title.
Android TV episode captions androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvMediaRow.kt, androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvMediaCard.kt
Row models carry episode labels for poster cards. Cards use the series title and a one-line episode caption when available. TvMediaCard accepts a caption line limit, adds captions to image descriptions, and applies ellipsis overflow to metadata.
Sports episodes without season or episode numbers lose their air date in phone captions and show only the episode title. This is a minor display gap and does not block merging, but it is worth fixing.
Security architecture risk: Minimal · up to 49f60
The change updates episode labels on Android and Android TV without changing access to media, saved data, or how either app is deployed.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the main change: episode poster cards on the home screen now show the series name. It matches the summary and objectives, which describe the series name becoming the card title on Andr…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Description check
The description states the problem (episode poster cards in Android phone and TV poster rows show only the episode title, so the series is not identifiable), the approach (SectionItem.episodeCardLabel…
Full details: Title check
Explanation
The title names the main change: episode poster cards on the home screen now show the series name. It matches the summary and objectives, which describe the series name becoming the card title on Android phone and TV poster rows.
Full details: Description check
Explanation
The description states the problem (episode poster cards in Android phone and TV poster rows show only the episode title, so the series is not identifiable), the approach (SectionItem.episodeCardLabel() in shared, use in MediaRow and TvMediaRow, one-line episode captions, TV artwork spoken label includes the caption), validation, evidence, and risks. All of this matches the changeset in the raw summary, so the description is specific and on-topic.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Episode poster cards now show the series title and episode caption. The linked evidence is present, but the PR says Android tablets and foldables were not captured separately; the changed phone MediaRow poster branch reaches those layouts too. Please add before-and-after screenshots of the same row and data on an Android tablet and a foldable both folded and open. The evidence page should show the phone, tablet, foldable folded and open, and Android TV surfaces.
Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness.
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
A right-to-left episode title joined after the left-to-right episode
code could show its punctuation at the wrong end. Wrap it in FSI/PDI,
as the TV cards already do.
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 settingsReview Options
The following review options are enabled or disabled:
Options
Enabled
Bug
✅
Performance
✅
Security
✅
Business Logic
❌
⚠️ 5 Kody Rule(s) were not evaluated
These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:
Validate download ownership before publishing subtitle bytes
Bind playback markers to the actual playing file
Share route-aware audio decisions and preserve original-format decoder fallback
Apply playback route eligibility consistently at admission and media loading
The latest commit adds bidi isolation for mixed-script/RTL episode titles, but the PR describes only an English “Episode 4” sample, so this rendering change is not represented in the described evidence. Please add a before-and-after example using a mixed-script/RTL title. The evidence page should show the phone, tablet, foldable folded and open, and Android TV.
Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness.
Added a before-and-after pair with an Arabic episode title to the evidence page: before the isolation commit the trailing "!" lands at the far right of the caption, after it stays at the end of the Arabic title. The isolation only changes how a joined phone caption renders, so the other devices are covered by their existing captures.
Reviewed head: f28e436 (third check on the same head; updated 2026-11-30)
On 2026-11-30 I checked the PR again. The head is unchanged, and the one commit main gained since (#1099, TV hero focus) touches none of these files. No new feedback has come in. The findings, scores and verdict below still stand.
Fit: 8/10 · Readiness: 9/10 — conditional
The fix works as described. I checked it again on a fresh sandbox server built from current main (f87aae6a). In the Recently Released Episodes in TV Shows row, the base build shows "Chapter 8 / 2026" on every episode card, on an Android 16 phone and on Android TV. With this branch the same cards read "56 Days" over "S01E08 • Chapter 8". Captions stay on one line, and on phone the row no longer grows when a long episode title wraps. The TV artwork's spoken label reads "56 Days, S01E08 • Chapter 8". Movie and series rows look the same before and after.
The review found no defect that this PR introduces. I pushed nothing and left the diff as it is.
Left for the maintainers
How much of the episode title the TV poster cards show. On TV, after the series name and the code, two or three letters of the episode title remain ("S01E08 • Ch…", "S03E10 • Im…"), and a long series name is cut too ("One-Punch …"). A row of one show's episodes then reads as the same name with different codes. The hero above the row shows the focused card's full code and title. All three visual reviewers flagged this, in this pass and the first. The options are:
Keep it. This is my recommendation for this PR: it matches the TV Continue Watching cards and Apple's series-over-caption layout, and the hero covers the focused card.
Show only the code in the TV poster caption, so it never ends in a fragment.
Give the TV caption a second line, which makes the row taller.
Other notes
The series name isn't localized, on the server. With a profile set to German and a German title for a series and one of its episodes, the Home API localizes the series card ("56 Tage") and the episode's own title ("Kapitel 8"), but it sends the episode's series_title in the base language ("56 Days"). With this branch the poster card shows "56 Days" over "S01E08 • Kapitel 8" under a series card that reads "56 Tage". main already leads the Continue Watching and Next Up cards with the same field, and the web and Apple cards use it too, so the gap predates this PR. The fix belongs in the server's section localization (LocalizeSectionItems localizes an episode card's title and overview but leaves its series_title in the base language), not in this client change. The evidence page has a capture.
Separator. The TV hero writes "S01E08 · Chapter 8" with a middle dot, as Apple's episode cards do, and the cards below it use a bullet. The Android Continue Watching cards already use the bullet, so this predates the PR; aligning the Android cards on one glyph would be a separate change.
Optional cleanups, not blocking:subtitleMaxLines and captionMaxLines are only ever passed 1. The phone's joined caption always wraps the title in bidi isolates, while the TV helper and the shared string helpers isolate only for right-to-left text, so the same rule now lives in two forms. Neither causes a visible difference.
Box sets on TV now speak their caption too, as the Risks section says.
Curated home sections — Android #315 C1 (curated Home rows render their contents, Android phone and tablet): minor change. Episode cards now show the series and a code-and-title caption. Which rows appear, and their order, are unchanged.
The other passed cases on these tasks (restricted profile, featured row, TV remote navigation), and the other passed Android cases: no behavior change. The Validation tasks: line in the description is still right.
Checks
User manual: unaffected. No siloserver.org page describes how episode cards are labeled.
Apple and Android parity: this PR covers both Android apps. Apple already captions episode cards with the series, so it needs no change.
Tests: CI is green on this head. EpisodeCardLabelTest can't run on the base because it calls EpisodeCardLabel, which this PR adds, so the before-and-after captures are the proof.
Council (one round on f28e436, this pass): code review by gpt-6.2-sol 8/10, claude-opus-5-5 8/10, gemini-4-neon 8.5/10. Visual review: gpt-6.2-sol better, 7/10; claude-opus-5-5 better, 6/10 (phone 8, TV 5); gemini-4-neon better, 7/10. The first pass on this head scored code review 8, 8.5 and 8, and visual review 7, 6 and 7.
Fit 8/10: the change brings Android in line with the web, Apple and Roku apps and adds no setting. The narrow TV cards hold the score down, because they leave little room for the episode title. Readiness 9/10: the behavior was shown live on both apps against current main, the validation board check ran, and no defect remains. The verdict is conditional on the TV caption question above.
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
bugSomething isn't workingimpact: polishAnnoyance, cosmetic, or nice-to-havepriority: P2Limited scope, workaround exists, or polishsize/M50–199 added + deleted lines (all files); change volume, not priority.
2 participants
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 #315 C1; changes #316 C1 (both passed on an earlier build; they need a re-test on a build with this change)
Other clients: Apple N/A (
EpisodeCardCaptionalready leads with the series); Roku N/A (catalog.cards.fromItemalready captions episodes with the series); Web N/A (episodeCardLabelsalready shows it)On Android phone and Android TV, an episode in a poster row such as Recently Added TV shows only its episode title ("Episode 4"), so you cannot tell which show it belongs to. The web, Apple and Roku apps show the series name with the episode code and title. A user reported this for Recently Added on both Android apps.
It became common when the server started returning single new episodes as episode cards in Recently Added TV. Setups that import one episode at a time now get many of them.
Approach
SectionItem.episodeCardLabel()inshareddecides what an episode card shows. The card title is the series name. The caption is the episode code, or the air date for sports series, followed by the episode title. The episode title is dropped when it only repeats the series name, as on Apple. The phoneMediaRowand TVTvMediaRowposter branches use it with their existing caption formatters. On both apps the episode caption stays on one line so a long title cannot change the row height. Other captions are unchanged.On TV the caption sits outside the focusable card, so the artwork's spoken label now includes it. Without that, two episodes of one show would sound identical.
Validation
testDebugUnitTestpasses, including a new table test for the card label rules. Run with an English JVM locale;FormattersTestfails under a decimal-comma locale on this machine, which is unrelated.:androidApp:assembleDebugand:androidTvApp:assembleDebugpass.:android-shared:lintDebug :androidApp:lintDebug :androidTvApp:lintDebug :androidApp:lintVitalRelease :androidTvApp:lintVitalReleasepass.mainwith a synthetic TV library: one show with a single new episode (an episode card) and one with three (a series card). Checked the Recently Added TV row on phone, tablet and foldable emulators (Android 16) and an Android TV emulator (Android 14), before on the v1.2.0-beta.32 release and after on this branch. TalkBack text for the TV card reads "Harbor Lights, S01E04 • Episode 4".Evidence
Evidence: https://evidence.siloserver.org/r/silo-android/pr-1055/
Surface and build: the Recently Added TV row on Home on an Android phone, a tablet, a foldable (open and folded) and Android TV. Before: release v1.2.0-beta.32. After: this branch's debug builds. Same server and library on every device.
Risks
Only poster cards for episodes change on screen. Movie and series cards, and the Continue Watching and Next Up cards, render as before. On Android TV, a box set card in a library grid now also speaks its caption (its years or watched count) after its name, because the TV card's spoken label includes any caption.
Follow-up: #1063 (the Explore all grids still label episodes by episode title alone; it builds on this PR).
Checklist
AI Disclosure