Repository navigation
feat(sections): show season art on Continue Watching episode cards - #3214
Conversation
Continue Watching and Next Up episode cards show the season backdrop, or the series backdrop when the season has none, instead of the episode still. Seasons gain backdrop columns that an admin sets from the image picker or an upload; metadata refresh leaves them alone.
Pick the season or series backdrop in the v2 Continue Watching and Next Up rows instead of the shared episode query, so frozen /api/v1 cards keep the episode still and an episode with no parent backdrop falls back to it. Season backdrops join the image cache backfill, repair, ladder backfill and its reopen trigger, so a provider copy that goes missing is cached again.
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:
|
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Season backdrop storage and selection migrations/sql/20261028150252_add_season_backdrop.sql, internal/models/media.go, internal/catalog/season_repo.go, internal/catalog/artwork_selection.go, internal/catalog/folder_repo.go, internal/api/handlers/admin_images.go, internal/api/handlers/admin_images_test.go, internal/api/handlers/admin_images_upload_test.go, web/src/components/ImageSelectorTab.tsx, web/src/components/ImageSelectorTab.test.tsx |
Season records and artwork updates now include backdrop fields. Admin image selection supports season backdrops, and image-directory checks retain referenced season backdrop paths. |
Season backdrop discovery and caching internal/metadata/*, internal/metadata/season_backdrop_cache_db_test.go, internal/catalog/artwork_lock_db_test.go, internal/catalog/folder_repo_image_dirs_db_test.go, migrations/sql/20261028150253_index_season_backdrop_path.sql, scripts/ci/db-contracts.txt |
Metadata discovery, reconciliation, ladder backfill, and targeted repair include season backdrops. Season image lookup returns show backdrops as fallback artwork. Database tests cover publishing and repair. |
Episode parent artwork and card fallback internal/sections/*, internal/api/handlers/sections.go, internal/api/handlers/artwork_widths_test.go, internal/api/handlers/episode_image_provenance_test.go, internal/apiv2/*, internal/apiv2/catalog_image_provenance_test.go, contracts/api/v2/openapi.json, docs/images-api.md, web/src/api/v2/schema.ts |
Section episode artwork includes season backdrop URLs and thumbhashes. Continue Watching and Next Up cards choose season artwork, then series artwork, and otherwise retain the episode still. Other sections and frozen v1 cards retain the described still behavior. |
Priority:
Estimated code review effort: 4 (Complex) | ~60 minutes
Change: Feature
Sequence Diagram(s)
sequenceDiagram
participant ImageCacheJobRepo
participant ImageCacheProcessor
participant SeasonRepository
participant SeasonRow
ImageCacheJobRepo->>ImageCacheProcessor: provide season backdrop job
ImageCacheProcessor->>SeasonRepository: update with image type and source path
SeasonRepository->>SeasonRow: set backdrop path and thumbhash when source matches
Possibly related issues
- Silo-Server/silo-server#2518: This change adds season and series artwork fallbacks for Continue Watching cards, but does not add the issue’s spoiler blur option or poster behavior.
Suggested labels: api-v2, impact: usability
Suggested reviewers: quick104
Merge Risk: 
Minimal · up to 248a9
-
Season backdrops now flow through storage, caching, admin selection, and resume-card presentation without an identified merge-blocking defect.
Security architecture risk: 
Low · up to 248a9
-
Artwork changes remain restricted to administrators and reuse existing download, publication, and cleanup protections. No introduced security weakness was established. The additional persistent artwork lifecycle carries low design risk, with deployment and rollback behavior still requiring operational validation.
Retained concerns
No architecture-level concerns identified.Security review details
-
Security Blast Radius
- observed — The new mutation capability remains within existing acting-administrator artwork authority. The handler derives the parent series from the persisted season identity; publication targets that season and also sets the existing series-wide images lock.
Trust Boundaries and Controls
- observed — Administrator-supplied provider or HTTP(S) image sources reuse the existing download path. That path permits private-network access for acting administrators while retaining address, redirect, and dial guards. This authority predates the PR; adding season backdrops does not change those controls.
Resilience and Maintainability Implications
- observed — The production image cacher is wired to durable revision tracking. It registers a revision before uploading and records the exact manifest afterward, providing a cleanup handoff even when an asynchronous job later loses its source-match race. Failed administrative publication also attempts delayed cleanup independently of request cancellation.
-
Pre-merge checks: 
4 · 
1
-
Failed checks: 1 warning Passed checks: 4 passedFull details: Docstring Coverage
-
Explanation
Docstring coverage is 77.78% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 27 functions across 29 files. (1 skipped: 1 unsupported.)
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
-
Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.
|
Evidence is incomplete for these visible effects:
The linked evidence should also make the season-backdrop and series-backdrop fallback behavior checkable. Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness. Posted via Macroscope — Visible change evidence |
There was a problem hiding this comment.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

Minor · Collect season backdrop directories before deleting a series. · folder_repo.go:1172
internal/catalog/folder_repo.go:1172
🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick winCollect season backdrop directories before deleting a series.
When a deleted series has a season backdrop in a distinct directory,
collectRawImageDirscollects only that season’s poster path. Folder deletion therefore never passes the backdrop directory tofilterUnreferencedImageDirsor reports it inOrphanedImageDirs. Addbackdrop_pathto the season row in this query, and test collection as well as filtering. (raw.githubusercontent.com)

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:
24325a9b-4954-4578-ba70-45397652681b
Files selected for processing: 35-
contracts/api/v2/openapi.jsondocs/images-api.mdinternal/api/handlers/admin_images.gointernal/api/handlers/admin_images_test.gointernal/api/handlers/admin_images_upload_test.gointernal/api/handlers/artwork_widths_test.gointernal/api/handlers/episode_image_provenance_test.gointernal/api/handlers/sections.gointernal/apiv2/catalog_image_provenance_test.gointernal/apiv2/catalog_types.gointernal/apiv2/library_views.gointernal/apiv2/operational_discovery.gointernal/catalog/artwork_lock_db_test.gointernal/catalog/artwork_selection.gointernal/catalog/folder_repo.gointernal/catalog/folder_repo_image_dirs_db_test.gointernal/catalog/season_repo.gointernal/metadata/artwork_reconcile.gointernal/metadata/image_cache_job_repo.gointernal/metadata/image_cache_processor.gointernal/metadata/image_ladder_backfill_db_test.gointernal/metadata/image_ladder_backfill_state_repo_db_test.gointernal/metadata/local_artwork_copy_db_test.gointernal/metadata/season_backdrop_cache_db_test.gointernal/metadata/season_images_test.gointernal/metadata/service.gointernal/models/media.gointernal/sections/episode_parent_artwork_db_test.gointernal/sections/fetcher.gomigrations/sql/20261028150252_add_season_backdrop.sqlmigrations/sql/20261028150253_index_season_backdrop_path.sqlscripts/ci/db-contracts.txtweb/src/api/v2/schema.tsweb/src/components/ImageSelectorTab.test.tsxweb/src/components/ImageSelectorTab.tsx
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 1 remain after this review.
-
Folder deletion now collects a deleted series' season backdrop directories as cleanup candidates, as it does season posters. The migration rollback restores the narrower cache-job check NOT VALID so it does not scan the queue while blocking writers.
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:
|
|
@coderabbitai The outside-diff finding on |
|
Evidence updated (same link, new version):
Evidence: https://evidence.siloserver.org/r/silo-server/pr-3214/ |
|
Suggested line: Automated check: Macroscope check run agent (gpt-6-luna). No validation was performed. Posted via Macroscope — v1 validation impact |
|
Agreed; the Series C4 (Continue Watching) and C9 (Next Up) cases on web, iOS, tvOS, Android and Android TV all show these rows. Added them to the |
|
Tip For best results, initiate chat on the files or code changes. @Rhainland Thanks for the fix in If you found this review helpful, would you consider giving us a shout-out on X? Thank you for using CodeRabbit! You are interacting with an AI system. |
Quick104
left a comment
There was a problem hiding this comment.
Review of 248a9bb. Three findings below are outside the diff's lines, so they are here rather than inline. I'm fixing all three in a commit on this branch, so there's no need to change them yourself.
1. Medium: the season page ignores the season backdrop. buildSeasonDetail (internal/catalog/detail.go:3400) still sets the season detail's backdrop_url and backdrop_thumbhash from the series. After this PR an admin can pick a backdrop in a season's image picker, and the picker lists it as the current backdrop, but opening that season's page still shows the series backdrop. The art only appears on Continue Watching and Next Up cards, so the admin's change looks like it did nothing. Repair: use the season backdrop when it is set and fall back to the series backdrop.
2. Low: the v2 upload contract still says seasons take a poster only. The type form field of the admin image upload operation (internal/apiv2/admin_catalog_images.go:46) is documented as "The slot the image fills. Seasons take poster only." The handler now accepts a season backdrop, so the published OpenAPI disagrees with the server. Repair: reword it and regenerate contracts/api/v2/openapi.json and web/src/api/v2/schema.ts.
3. Low: two comments still describe the old model. internal/apiv2/catalog_types.go:75 says "Seasons store no backdrop, so there is no season backdrop member", and the UploadAdminItemImage doc (internal/api/handlers/admin_images.go:452) lists only "a season's poster". Repair: reword both.
One more finding is inline and needs a maintainer decision.
| switch imageType { | ||
| case artworkImagePoster: | ||
| return "seasons", artworkPosterPathColumn, artworkPosterSourceColumn, artworkPosterThumbColumn, ErrSeasonNotFound, nil | ||
| case artworkImageBackdrop: |
There was a problem hiding this comment.
Maintainer decision: once a season has a backdrop, nothing can remove it. Apply rejects an empty URL, publishing needs a non-empty stored path, and metadata refresh never writes these columns (on purpose). An admin can only swap the season backdrop for another one; they can't go back to the series backdrop fallback. A backdrop chosen while a series was matched to the wrong show also stays after the series is identified correctly, because the season rows survive the rematch. Continue Watching would then show the old show's art. I traced that path in the source but didn't reproduce it.
The options are a clear action for a season backdrop (a v2 operation and a picker button), clearing unlocked season backdrops when a series is re-identified, or both, either here or in a follow-up. I'm not changing this on the branch until that's decided.
Season detail kept the series backdrop after a season gained one, so an admin's pick in the season image picker never showed on the season page. Use the season backdrop when set and fall back to the series backdrop. Also correct the v2 upload contract, which said seasons take a poster only, and two comments that still described seasons as having no backdrop. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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:
|
Review summary (head 0e59df3)Reviewed 248a9bb and pushed one fix commit on top of it, 0e59df3. The branch wasn't rewritten. Fit: 7/10 · Readiness: 7/10 — conditional Addressed in 0e59df3
Left for the maintainers
Checked and not changed
Tests
ValidationI couldn't check the v1.0 board, so the PR body's User manual and clients
Cross-provider reviewgpt-6.1-sol (Codex, xhigh, read-only, one round) reported three findings: the missing clear action (the inline maintainer decision), the seed bundle (not changed, see above) and the picker order (#3218). The evidence page shows the Continue Watching row and the season picker, and neither changes with 0e59df3. It has no capture of a season page with a season backdrop. |
|
Evidence does not cover the season detail artwork change: Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness. Posted via Macroscope — Visible change evidence |
|
Just pulled this, absolute Fire, great change. |
|
Thanks @Rhainland - love that this got in! |
Problem
Related issue: N/A
Validation tasks: changes #1210 C1 and #1211 C1 (a season's artwork gains a backdrop slot); changes #1252 C4 and C9, Silo-Server/silo-apple#337 C4 and C9, Silo-Server/silo-apple#338 C4 and C9, Silo-Server/silo-android#347 C4 and C9, Silo-Server/silo-android#348 C4 and C9 (Continue Watching and Next Up card artwork). None of these cases has been run yet.
Episode cards in Continue Watching and Next Up show the episode still. A still
is a single frame, often dark or blurry. It doesn't tell a viewer much about
what they were watching, and it changes from episode to episode. This change
shows the season's landscape art on those cards instead, falls back to the
series backdrop, and keeps the still only when neither exists.
Seasons only stored a portrait poster, so this change also gives seasons a
backdrop.
Approach
seasonsgainsbackdrop_path,backdrop_source_pathandbackdrop_thumbhash. No metadata plugin shipsseason landscape art today (TMDB has none, and the TVDB plugin keeps only
season posters), so an admin sets it from the image picker or by upload.
Metadata refresh never writes these columns, so a pick survives a refresh.
season's own backdrops first, then the show's backdrops, because providers
rarely have season landscape art. This costs one extra provider image call
when an admin opens a season's images.
next to the series backdrop.
/api/v2Continue Watching and Next Up rowspick season backdrop, then series backdrop, then the card's existing
backdrop. Frozen
/api/v1cards, Recently Added, Watch Tonight andrecommendations keep the still.
else the series backdrop.
revision GC triggers, the artwork sweep, the library-delete reference check,
image cache backfill and repair, the ladder backfill and its reopen trigger.
Reconcile resets a missing provider copy to its source, and the backfill
caches it again.
The Apple and Android apps draw these cards from
backdrop_url, so they pickthis up without a client change. The user manual's "Choose artwork" section
stays accurate.
Validation
extended database tests are listed in
scripts/ci/db-contracts.txt.make test-db-contractson a fresh, migrated database: every pin passes exceptTestPostgresConcurrentProfileDeletesWithCrossVisibility(
internal/userstore/pgstore, untouched here), which failed once under theparallel run and passed three times on its own.
cache-job check validates.
make lint-changed,make verify-apiv2-openapi,make verify-local-paths,web typecheck and the image picker and Continue Watching card tests: pass.
plugins. I applied a Season 3 backdrop to Silo through the new picker,
checked the Continue Watching row (an in-progress card and a Next Up card) in the web app at desktop and phone width,
and checked that
/api/v1home sections still return the episode still while/api/v2returns the season backdrop (Silo) and the series backdrop(Manhunt, no season backdrop).
buildSeasonDetailfailed on 248a9bb and passes on 0e59df3.Evidence
Evidence: https://evidence.siloserver.org/r/silo-server/pr-3214/
Surface and build: web app Continue Watching row at desktop and phone width, with an in-progress card (season backdrop) and a Next Up card (series backdrop fallback); web admin season image picker at desktop and phone width. Before on
origin/main23aec3e, after on 248a9bb, same database. The Apple and Android TV focus heroes are aligned in separate client pull requests with their own captures; the apps' rows drawbackdrop_urland need no change.Risks
Two migrations. The first adds three
NOT NULL DEFAULT ''columns toseasons, replaces threeseasonstriggers and widens the image-cache jobshape check
NOT VALID. The second builds a partial indexCONCURRENTLYandvalidates the check. The provider-artwork backfill scans one more surface,
season backdrops, which are empty on existing servers.
Checklist
AI Disclosure
/api/v1section cards changed meaning through the shared episode query, and that cards lost the still as a last fallback. All three are fixed: the season backdrop now goes through backfill, repair and the ladder backfill; the choice moved to v2 Continue Watching and Next Up rows; the still is the last fallback. One low finding was dismissed: a failed show-gallery call in the season picker reports a provider error even when the season's own gallery loaded. Round 2 reviewed the fixes with both models and found nothing. Round 3 reviewed the fixes for two CodeRabbit comments (folder deletion did not collect season backdrop directories; the migration rollback re-added the narrower check with a table scan) and found nothing.Note
Add season backdrop support across artwork pipeline and episode cards
SeasonRepository.UpdateArtworkIfSourceMatchesbackdrop_urlwhen present, then the series backdrop, and only use the episode still when neither exists (library_views.go); other sections and frozen/api/v1cards keep the episode stillMacroscope summarized 0e59df3.