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
feat(detail): show a multi-episode file as one episode - #1098
A file that holds several episodes, such as S12E15-E16, used to appear as two episodes that play the same video. Silo-Server/silo-server#5516 makes the server list it as one row for its first episode, with episode_number_end and spanned_episodes. Without this change the Android apps show that row as E15 alone, and nothing says it also plays E16.
With this change, phone and TV show the row as the whole range: "S12E15–E16", the first episode's title and a "2 episodes" tag.
Approach
Episode cards show the range code, the first episode's title and the "N episodes" tag.
EpisodeLabel takes an optional end episode, so each code style spells its range form in one place.
When the episodes' descriptions differ, the row's description gets a tab per episode. On phones the tabs sit above the description. In a season that has such a row, every episode keeps space for the tabs, so the hero doesn't jump while swiping the carousel. On TV the tabs sit below the description, next to the buttons, and focus selects them.
Play and Resume name the whole range.
A folded episode opened directly, such as E16 from search, keeps its own page and shows a "Part of …" link to the row.
The models decode both new fields as optional, so older servers are unaffected. The strings come from Silo-Server/silo-translations#197. This branch syncs them with --local until that merges; I'll re-sync with --version before merge.
Validation
testDebugUnitTest for all modules: 1015 tests. Three FormattersTest cases fail because the build machine's locale uses a decimal comma; they fail the same way on a clean main. New common tests cover the first episode's title, the range codes, the tab state and the row lookups.
assembleDebug for phone and TV, and lintDebug for android-shared, androidApp and androidTvApp, pass.
Manual: phone, Android TV and a tablet-size emulator against a seeded library: Doctor Who S1 E4–E5 (different descriptions), Two and a Half Men S12 E15–E16 (same description) and Lost S1 E1–E2.
None identified. Without the server change nothing differs, because the fields are absent.
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
Model(s): claude-opus-5-5; gpt-6.2-sol (review)
Involvement: Fully AI-generated, human verified
Adversarial review: dual-code-review (gpt-6.2-sol and claude-opus-5-5). Fixed: a TV tab losing its title when that episode has no description, the phone hero jumping when tabs appeared, and hard-coded small text in the "Part of" link. Dismissed: resume position for a folded episode (it plays the same file).
Note
Show multi-episode video files as a single episode in series detail
Adds range fields (episode_number_end, spanned_episodes) to EpisodeListItem and the V2 read DTO, so a video row can carry the later episodes it contains
New EpisodeRange helpers (EpisodeRange.kt) map folded episodes to their containing row, build episode-part tabs, and generate localized range, count, and "Part of" text
Android and TV series detail screens resolve a folded episode to its range row, show episode-part tabs with the selected part's title/overview, and add a "Part of" link for folded episodes; episode cards and hero facts show an episode-count tag
Activating a folded episode in the TV view model selects its containing row and jumps the carousel to it
Behavioral Change: episode selection, next-up labels, and episode highlight now resolve through EpisodeRange.rowFor/rowIdFor instead of exact content-ID matches, affecting ItemDetailViewModel.ensureSeriesEpisodeSelection and TvItemDetailViewModel.onSeriesEpisodeActivated
This organization requires a seat for paid usage-based reviews, including automatic and on-demand reviews. Ask an admin to assign a seat or enable paid usage-based reviews for users without a seat in Billing.
The change adds catalog fields and shared helpers for videos that contain multiple episodes. Android phone and TV detail screens use these fields to display episode ranges, counts, parts, and folded-episode links. Android string resources and translations are updated.
Changes: Episode range support
Layer / File(s)
Summary
Range data, API mapping, and helpers shared/src/commonMain/kotlin/org/siloserver/silo/model/catalog/*, shared/src/commonMain/kotlin/org/siloserver/silo/network/apiv2/CatalogDetailReadV2Models.kt, shared/src/commonTest/kotlin/org/siloserver/silo/model/catalog/EpisodeRangeTest.kt, shared/src/commonTest/kotlin/org/siloserver/silo/network/apiv2/CatalogDetailReadV2Test.kt, android-shared/src/androidUnitTest/kotlin/org/siloserver/silo/common/i18n/SharedPresentationTextTest.kt
Catalog items now carry an ending episode number and spanned episode entries. Shared helpers resolve ranges and folded episodes, format titles and labels, and select episode parts. Tests cover helper behavior, captions, and API mapping.
Android strings and translations .silo-translations, android-shared/silo-locales.properties, android-shared/src/androidMain/kotlin/org/siloserver/silo/common/i18n/SharedStrings.kt, android-shared/src/androidMain/res/values*/strings_catalog.xml
Resource mappings and catalogs add episode-range and episode-part labels, count plurals, and a resume label that accepts an episode code. Translated catalogs add the resume label and update generated-file identifiers.
Phone detail screens resolve folded episodes, display range counts, and show part tabs and selected-part overviews. The hero can display a link from a folded episode to its anchor.
Android TV episode ranges androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvFactsRow.kt, androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/detail/*, androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/*
TV detail screens display range labels and counts, episode-part tabs, and folded-episode links. The view model resolves folded episode routes and refreshes Next Up state. Mode tabs gain configurable focus activation, with corresponding test updates.
The episode-range feature itself looks sound, but the translation pin has not been re-synced to a published release and the translation check fails in CI. Until the re-sync lands, non-English users will see English text for the new range labels. Complete the re-sync with --version before merging.
Security architecture risk: Low · up to 73310
The episode changes use the existing catalog and playback flows. The remaining concern is that this revision makes build validation run the translation generator from source instead of checking a pinned release. The workflow has limited permissions, and restoring the release pin before merge would remove that change.
Retained concerns
Low · security · observed: The reviewed head makes the existing translation check execute the external catalog's generator on CI. The base verified a release tarball against a pinned SHA-256; the head records a local commit and invokes its Make target after checkout. Commit checking and byte-for-byte output comparison remain, but the comparison happens after generator execution. This expands build-time trust until the release pin is restored.
Security review details
Security Blast Radius
inferred — The evidenced expansion is execution of the selected catalog generator inside the hosted translation-check job. The shown workflow limits repository access to read-only and disables persisted checkout credentials; the evidence does not establish production access or a deployed-client compromise.
Trust Boundaries and Controls
observed — CI checks the catalog checkout against the recorded commit prefix, suppresses npm install scripts, and compares generated output to committed files. Those controls do not substitute for the base archive checksum: the selected catalog's Make target runs before output comparison.
Hardening Proposals
proposed — Restore a checksummed translation release pin before merge. If local pins are needed for development, keep source generation out of protected-branch validation unless it is explicitly approved for that environment.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title "feat(detail): show a multi-episode file as one episode" matches the main change. The changeset adds range-row handling for multi-episode files on Android phone and TV, including range codes…
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 (multi-episode files such as S12E15-E16 showing as a single-episode row on Android phone and TV), the approach (range episode codes, an episode-count tag, per-episod…
Full details: Title check
Explanation
The title "feat(detail): show a multi-episode file as one episode" matches the main change. The changeset adds range-row handling for multi-episode files on Android phone and TV, including range codes, combined titles, episode-count tags, part tabs, and a "Part of" link. The title is specific and concise.
Full details: Description check
Explanation
The description states the problem (multi-episode files such as S12E15-E16 showing as a single-episode row on Android phone and TV), the approach (range episode codes, an episode-count tag, per-episode description tabs, Play/Resume labels naming the full range, and a 'Part of' link for folded episodes), the validation performed, and the risks. It is directly related to the changeset, which adds EpisodeRange models, Android UI components, and localized strings for these behaviors.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
The Evidence section says captures follow in a comment, but I found no captures or evidence link in the PR body or comments.
androidApp/.../EpisodeList.kt, shared/.../EpisodeCardCaption.kt, and androidTvApp/.../TvDetailEpisodeRail.kt: episode rows now show range codes, combined titles, and episode-count tags. This reaches Android phone, tablet, foldable folded and open, and Android TV. Evidence is missing for all five configurations; add before-and-after captures of the same screens with the same data, naming each device and build or commit.
androidApp/.../SeriesDetailContent.kt and androidTvApp/.../TvDetailHero.kt / TvItemDetailScreen.kt: detail pages add per-episode description tabs and folded-episode navigation, and Play/Resume labels show the full range. This reaches Android phone, tablet, foldable folded and open, and Android TV. Evidence is missing for all five configurations; add before-and-after captures of the detail screens, plus a recording of tab selection and folded-episode navigation, including TV focus movement.
Suggested fix: No diff — attach the requested captures and recording, or publish them on evidence.siloserver.org and link them in the Evidence section.
Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness.
The server now lists a file such as S12E15-E16 as one row for its first
episode, with episode_number_end and spanned_episodes. Episode cards on
phone and TV show the range code, the combined title and an "N episodes"
tag. The row's description gets a tab per episode when the descriptions
differ (above it on phones, below it on TV, where focus selects a tab), and
Play and Resume name the whole range. A folded episode's page links to the
row that plays it.
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
❌
⚠️ 6 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 reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 16
Caution
Some comments are outside the diff and can’t be posted inline due to GitHub limitations.
⚠️ Outside diff range comments (1)
Minor · Add a Swedish translation for catalog_episodeRangeTag. · strings_catalog.xml:328
android-shared/src/androidMain/res/values-sv/strings_catalog.xml:328 Minor · Functional Correctness · Quick win
Add a Swedish translation for catalog_episodeRangeTag.
Swedish has no catalog_episodeRangeTag entry. Android falls back to the default S%1$sE%2$s–E%3$s, so a folded range on a Swedish device shows the English E prefix. The Swedish single-episode tag uses A (S%1$sA%2$s). Swedish episode cards therefore show S01A02 for one episode and S01E04–E05 for a range.
Add the Swedish range translation in silo-translations, using the same episode abbreviation as catalog.episodeTag. Re-sync the Swedish catalog so the generated file includes it. Do not edit the generated file by hand, because the planned re-sync overwrites that change.
Review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: 186b3e96-5e95-44a4-b6b0-54a62ade43b4
Commits
Reviewing files that changed from the base of the PR and between b7c0412 and 1b9aa6d.
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
ci / Select CI work fails at check-translations because the strings come from Silo-Server/silo-translations#197, which isn't merged yet, so its commit isn't in the public catalog for the check to clone. Once Silo-Server/silo-translations#197 merges and publishes a release, I'll re-sync with --version <release>, which clears it.
Wrap the combined title in Unicode isolates where "Part of {code} · {title}"
and an episode tab's spoken label join it to other text, so a right-to-left
title cannot reorder the code and separator beside it. A title shown alone
stays unwrapped.
- Scroll the phone episode tabs sideways so a long range (E1–E10) keeps
every tab reachable on a narrow screen.
- Label Play/Resume with the whole range on a TV season page too.
- Rebuild a folded entry episode from the refreshed season rows, so
marking its video watched updates the page's Play/Resume; drop it once
no row holds it.
- Leave a folded episode's air date empty instead of showing its first
episode's.
…lded Resume
The phone's episode tab row kept its scroll position when the page moved
straight from one multi-episode row to another, so a long range could open
with its selected first tab scrolled out of view. The scroll state now
belongs to the row.
The TV test for a folded entry episode now starts from a position that
offers Resume and checks Resume is gone once the row is marked watched.
Also splits the folded-row rebuild into its own statement and updates the
Play label's doc comment for ranges and dated series.
A cached season list without the episode's row dropped the folded entry
episode for good, so the fresh list fell back to another next-up. A list
without the row now skips it for that refresh and keeps it for the next.
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
❌
⚠️ 6 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
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
The reason will be displayed to describe this comment to others. Learn more.
Major · Functional Correctness · Quick win
Complete the release-based translation sync before merge.
The supplied PR context reports that check-translations fails because the public catalog lacks the new keys. This revision still records local-d110049cd0fd with sha256=-.
After the upstream catalog release is published, re-sync with --version and commit the published pin and generated outputs. The planned follow-up does not resolve the reported CI failure in this revision.
The reason will be displayed to describe this comment to others. Learn more.
Agreed, and planned. The pin stays local- while Silo-Server/silo-translations#197 waits for its translation pass. Once it merges and publishes a release, I'll re-sync with --version <release> before this merges, which also clears check-translations. Keeping this open until then.
A row of three to five episodes read badly with every title joined, so
cards, the TV hero and the "Part of" link show the first episode's own
title as stored, the way a single episode does.
…th rails
A folded episode opened directly has no card. The phone rail now scrolls to
and marks the row whose video plays it, and the TV rail rings that row and
no longer holds its first reveal for the timeout.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A finished description translation replaced the row's own description but
kept the later episodes' old ones, so their tabs stayed in the source
language and identical descriptions could show tabs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Next-up kept a folded episode only when the entry path had already
classified it, so an episode that a refresh folded fell back to the
suggested episode. The active id now resolves through EpisodeRange.rowFor,
which also makes the separate folded-entry copy unnecessary.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The reason will be displayed to describe this comment to others. Learn more.
Review of c3bfa33, from my own pass, a code review and a cross-provider round (findings checked against the source). Six findings below: one medium, three low and two nits. I'm fixing all six in commits on this branch.
Checked and fine: Resume on a folded episode reads its row's progress, which is right because the server writes progress for a multi-episode file to its first episode (playbackProgressTarget returns file.EpisodeID). Autoplay picks the next row from the folded season list, so it goes E4–E5 → E6. Older servers decode the fields as absent.
…title
A range of up to eleven episodes no longer squeezes later tabs, the first
tab keeps the hero's own (playback detail) title, and the synopsis keeps its
KDoc.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Users cannot tell that later-episode descriptions were AI-translated because both detail screens suppress the indicator for nonfirst tabs. Propagate translation provenance through spannedEpisodes and use it when rendering the selected tab.
Prompt for LLM
File shared/src/commonMain/kotlin/org/siloserver/silo/model/catalog/MachineTranslation.kt, lines 61-63:
Translated later-episode descriptions lack translation attribution
Translated descriptions for later episodes appear without the AI translation indicator because both detail screens suppress that indicator for nonfirst tabs. Propagate per-part translation provenance and use it when rendering the selected tab.
The reason will be displayed to describe this comment to others. Learn more.
Confirmed. Since 1d19dc3 a later tab shows the translated description, but the server's spanned_episodes carries no translation provenance (SpannedEpisode has only content_id, episode_number, title and overview), so the client can't tell which later descriptions were machine-translated. The tabs past the first therefore show no label. The clean fix is server-side: add machine_translated_fields to SpannedEpisode in Silo-Server/silo-server#5516, which isn't merged yet, then show the label for the selected tab here. I've left this open for the maintainers to settle together with the server PR.
The reason will be displayed to describe this comment to others. Learn more.
Agreed. The attribution issue depends on per-episode provenance that the current spanned_episodes response does not provide. The server and Android changes should be coordinated: add the provenance to the server response, then use the selected episode’s provenance to decide whether to show the translation indicator.
It makes sense to leave the suggestion open for the maintainers to resolve alongside the server PR.
…on the episode route
The TV tab row's scroll position is keyed to its range, so another range
opens at its first tab, and the phone's standalone episode page marks the
row that plays a folded episode, as the series page does.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
❌
⚠️ 6 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
Reviewed head: 111e334 (your eight commits plus five review fix commits on top of c3bfa33).
Fit: 8/10 · Readiness: 7/10 — conditional
Fit: a multi-episode file showing up as several episodes that play the same video is a real correctness problem in the core browse-and-play path. This PR fixes it on phone and TV, alongside the matching Apple, Roku and web changes. The new surfaces (episode tabs, the "Part of" link) are a reasonable way to show what the one row plays, though they add UI to maintain. Readiness: the code works live and its tests pass, but two maintainer decisions are open (below), and CI stays red until the catalog release is pinned.
What the review changed
Each finding from the inline review is fixed on this branch:
6892d8d A folded episode opened directly now marks its row as current. The phone rail scrolls to the row and marks it Now viewing. On TV the row gets the current ring and the rail no longer waits for its reveal timeout.
1d19dc3 A finished description translation now updates the later episodes' tab descriptions. Before, they stayed in the source language, and identical descriptions could produce tabs. EpisodeTranslationMergeTest covers it and fails on c3bfa33.
ca14572 TV next-up resolves a folded active episode on every refresh, so an episode that a refresh folds keeps its page. foldedEntryEpisode is gone.
6cf8ab3 The TV tab row scrolls for long ranges (up to eleven episodes). The first tab keeps the hero's own title, an untitled later tab reads "Episode N", and the synopsis KDoc is back on its function.
111e334 The TV tab scroll resets for each range, and the phone's standalone episode page marks a folded episode's row too.
Left for the maintainers
AI translation label on later tabs (maintainer decision, with silo-server#5516). Since 1d19dc3, a later tab can show a machine-translated description with no AI label. The server's spanned_episodes entries carry no machine_translated_fields, so the client can't tell which ones were translated. Recommended: add that field to SpannedEpisode in silo-server#5516 before it merges, then label the selected tab here. Kody's open thread on MachineTranslation.kt tracks this.
Phone page of a folded episode doesn't show that episode's title (maintainer decision). Opening E4 directly shows the series logo, "Part of S1·E3–E5 · <E3's title>" and E4's description, but not E4's own title. TV shows it in the hero. Options: add the episode's code and title above the link, or keep the current design.
Translations and CI.check-translations fails because .silo-translations pins local-d110049cd0fd, a commit that isn't on GitHub. The translation pass is now on feat(catalog): add multi-episode file strings silo-translations#197. Once that merges and publishes a release, re-sync this branch with scripts/sync-translations --version <release>. That clears both failing checks, and CI then runs unit tests and lint, which it skips today.
Nits I left alone: EpisodeRange.count and isMultiEpisode read two fields the server keeps in agreement, and two small duplicated blocks in the TV view model and screen could be merged.
Live, on task-owned Android 16 phone and 1080p TV emulators against a disposable server built from silo-server#5516 (64daab8). The template library has no multi-episode file, so one was seeded in that sandbox's database as S01E03–E05, as a current scan records it. Checked: the E03–E05 card and hero with tabs on both apps; TV and phone pages for folded E4 with the "Part of" link; the phone E5 tab; and the rail fixes. Nothing in the TV hero clipped with the tabs or the link (logo title).
testDebugUnitTest for every module and both assembleDebug builds pass at the reviewed fixes. lintDebug couldn't finish on my machine: the lint worker ran out of memory, a local limit unrelated to this change.
Validated features: none. No passed case on the v1.0 board covers Android series or season detail, episode cards, or Play labels, and without the server fields nothing visible changes. Validation tasks: none is right.
Other clients: Apple silo-apple#1315, Roku silo-roku#114 and web in silo-server#5516 are linked. Watch-party subtitles, download titles and the player eyebrow still name only the first episode of a range. That's outside this PR, and the same holds on the other clients.
Earlier threads: the resume-position and playback-target threads are right as answered. The server writes a multi-episode file's progress to its first episode (playbackProgressTarget returns file.EpisodeID).
Cross-provider review
Member
Round 1 (c3bfa33)
Round 2 (6cf8ab3)
Sol (gpt-6.2-sol, medium)
6/10
7/10
Opus (claude-opus-5-5, medium)
7.5/10
8.5/10
Gemini (gemini-4-neon, medium)
8/10
9/10
Round 2 marked every round-1 fix resolved except the two decisions above. 111e334 fixes the two low findings round 2 raised. Two other round-2 findings are older than this PR and apply to any episode: the phone rail can select a neighbouring card after it scrolls a season's last row into view on a wide rail, and the TV entry episode is lost when a stale cached season lacks it.
🤖 Claude Code (claude-opus-5-5)
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
enhancementNew feature or requestimpact: polishAnnoyance, cosmetic, or nice-to-havepriority: P2Limited scope, workaround exists, or polishsize/XXL1000–2999 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 (Silo-Server/silo-server discussion #5477)
Validation tasks: none
Other clients: Apple Silo-Server/silo-apple#1315; Roku Silo-Server/silo-roku#114; Web Silo-Server/silo-server#5516
A file that holds several episodes, such as
S12E15-E16, used to appear as two episodes that play the same video. Silo-Server/silo-server#5516 makes the server list it as one row for its first episode, withepisode_number_endandspanned_episodes. Without this change the Android apps show that row as E15 alone, and nothing says it also plays E16.With this change, phone and TV show the row as the whole range: "S12E15–E16", the first episode's title and a "2 episodes" tag.
Approach
EpisodeLabeltakes an optional end episode, so each code style spells its range form in one place.The models decode both new fields as optional, so older servers are unaffected. The strings come from Silo-Server/silo-translations#197. This branch syncs them with
--localuntil that merges; I'll re-sync with--versionbefore merge.Validation
testDebugUnitTestfor all modules: 1015 tests. ThreeFormattersTestcases fail because the build machine's locale uses a decimal comma; they fail the same way on a cleanmain. New common tests cover the first episode's title, the range codes, the tab state and the row lookups.assembleDebugfor phone and TV, andlintDebugforandroid-shared,androidAppandandroidTvApp, pass.Evidence
Evidence: https://evidence.siloserver.org/r/silo-android/pr-1098/
Risks
None identified. Without the server change nothing differs, because the fields are absent.
Checklist
AI Disclosure
Note
Show multi-episode video files as a single episode in series detail
episode_number_end,spanned_episodes) toEpisodeListItemand the V2 read DTO, so a video row can carry the later episodes it containsEpisodeRangehelpers (EpisodeRange.kt) map folded episodes to their containing row, build episode-part tabs, and generate localized range, count, and "Part of" textEpisodeRange.rowFor/rowIdForinstead of exact content-ID matches, affectingItemDetailViewModel.ensureSeriesEpisodeSelectionandTvItemDetailViewModel.onSeriesEpisodeActivatedMacroscope summarized 111e334.