Skip to content

feat(sections): show season art on Continue Watching episode cards - #3214

Merged
Quick104 merged 4 commits into
Silo-Server:mainfrom
Rhainland:feat/continue-watching-season-art
Oct 28, 2026
Merged

Quick104 merged 4 commits into
Silo-Server:mainfrom
Rhainland:feat/continue-watching-season-art

Conversation

@Rhainland

@Rhainland Rhainland commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Season backdrop. seasons gains backdrop_path,
    backdrop_source_path and backdrop_thumbhash. No metadata plugin ships
    season 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.
  • Image picker. A season gets a Backdrops tab. The season gallery lists the
    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.
  • Cards. The season backdrop rides on the episode card's parent artwork,
    next to the series backdrop. /api/v2 Continue Watching and Next Up rows
    pick season backdrop, then series backdrop, then the card's existing
    backdrop. Frozen /api/v1 cards, Recently Added, Watch Tonight and
    recommendations keep the still.
  • Season page. A season's detail shows its own backdrop when it has one,
    else the series backdrop.
  • Storage. Season backdrops are protected the same way season posters are:
    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 pick
this up without a client change. The user manual's "Choose artwork" section
stays accurate.

Validation

  • Go tests for the touched packages, including the database tests: pass. New and
    extended database tests are listed in scripts/ci/db-contracts.txt.
  • make test-db-contracts on a fresh, migrated database: every pin passes except
    TestPostgresConcurrentProfileDeletesWithCrossVisibility
    (internal/userstore/pgstore, untouched here), which failed once under the
    parallel run and passed three times on its own.
  • Both migrations applied up, down and up again on a fresh database; the widened
    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.
  • Manual: a local server with a TV library matched through the TMDB and TVDB
    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/v1 home sections still return the episode still while
    /api/v2 returns the season backdrop (Silo) and the series backdrop
    (Manhunt, no season backdrop).
  • Season detail backdrop (added in review): a database check against
    buildSeasonDetail failed 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/main 23aec3e, 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 draw backdrop_url and need no change.

Risks

Two migrations. The first adds three NOT NULL DEFAULT '' columns to
seasons, replaces three seasons triggers and widens the image-cache job
shape check NOT VALID. The second builds a partial index CONCURRENTLY and
validates the check. The provider-artwork backfill scans one more surface,
season backdrops, which are empty on existing servers.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.
  • Each test this pull request adds meets "Decide what to test" in CONTRIBUTING.md.
  • The Evidence section shows every change a user can see, or says there is none.

AI Disclosure

  • Harness: Claude Code
  • Tool(s): Claude Code; Codex CLI (review only)
  • Model(s): claude-opus-5-5; gpt-6.1-sol (review only)
  • Involvement: Fully AI-generated, human verified
  • Adversarial review: two independent reviews of the full branch diff (claude-opus-5-5 and gpt-6.1-sol, read-only, against the repository's standards and the request), reconciled and checked against the code. Round 1 found that season backdrops were swept but not re-cached (blob-storage.md requires backfill and repair for provider-backed surfaces), that /api/v1 section 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

  • Seasons can now store a backdrop path, source path, and ThumbHash, via the migration in 20261028150252_add_season_backdrop.sql plus an index on nonempty backdrop paths
  • The image-cache pipeline handles season backdrops end to end: discovery (new surface 14), ladder backfill, targeted repair, artwork reconciliation, and cache updates in SeasonRepository.UpdateArtworkIfSourceMatches
  • Metadata fetch collects exact season posters and backdrops with show-image fallbacks: show backdrops for any season, show posters only for Specials (service.go)
  • Continue Watching and Next Up episode cards show the season backdrop as backdrop_url when present, then the series backdrop, and only use the episode still when neither exists (library_views.go); other sections and frozen /api/v1 cards keep the episode still
  • Season detail and admin image APIs report and accept the season backdrop; the web image selector adds backdrop tabs for seasons
  • Behavioral Change: season image-list responses now report the season backdrop path (even when empty) instead of the parent series backdrop, and season backdrop uploads are no longer rejected

Macroscope summarized 0e59df3.

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-triage silo-triage Bot added the size/XL 500–999 added + deleted lines (all files); change volume, not priority. label Oct 28, 2026
@silo-kody

silo-kody Bot commented Oct 28, 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 ❌

@coderabbitai

coderabbitai Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent 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: 36934dbe-41b1-4a02-9951-2d1483e50eef
Commits

Reviewing files that changed from the base of the PR and between f11fd11 and 248a9bb.

Files selected for processing: 3
  • internal/catalog/folder_repo.go
  • internal/catalog/folder_repo_image_dirs_db_test.go
  • migrations/sql/20261028150252_add_season_backdrop.sql
Files skipped from review as they are similar to previous changes: 1
  • migrations/sql/20261028150252_add_season_backdrop.sql

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 2 remain after this review.

Walkthrough

The change adds stored and cached season backdrops, exposes them in admin image selection and episode parent artwork, and uses season or series backdrops for Continue Watching and Next Up cards. It also updates season image lookup and documents the /api/v2 fallback while preserving the described /api/v1 still behavior.

Changes: Season Backdrop Support

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: Normal

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
Loading

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: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning 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. Documenta… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly and concisely describes the primary change: showing season artwork on Continue Watching episode cards.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The pull request description directly explains the season backdrop changes, artwork fallback behavior, affected API surfaces, storage and caching updates, migrations, tests, and validation results.
Full 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.

@silo-triage silo-triage Bot added enhancement New feature or request go Pull requests that update go code impact: polish Annoyance, cosmetic, or nice-to-have javascript Pull requests that update javascript code priority: P2 Limited scope, workaround exists, or polish labels Oct 28, 2026
@macroscopeapp

macroscopeapp Bot commented Oct 28, 2026

Copy link
Copy Markdown

Evidence is incomplete for these visible effects:

  • Next Up cards: the API change applies to both Continue Watching and Next Up, but the Evidence section lists only Continue Watching. Add before-and-after captures of the same Next Up row at desktop and phone width.
  • Apple and Android cards: both clients render the changed backdrop_url, but the listed evidence covers web surfaces only. Add before-and-after captures of the affected cards in each client, using the same data.
  • Season image picker at phone width: the new Backdrops tab is visible in the responsive picker. Add before-and-after phone-width captures for this web admin surface; the Evidence section does not specify its viewport coverage.

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

@coderabbitai coderabbitai Bot added api-v2 API v2 / Huma migration program (epic #135); long-running, stacked by phase impact: usability Core flow broken or severely blocked size/XXL 1000–2999 added + deleted lines (all files); change volume, not priority. labels Oct 28, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

⚠️ Outside diff range comments (1)

Minor · Collect season backdrop directories before deleting a series. · folder_repo.go:1172

internal/catalog/folder_repo.go:1172
🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick win

Collect season backdrop directories before deleting a series.

When a deleted series has a season backdrop in a distinct directory, collectRawImageDirs collects only that season’s poster path. Folder deletion therefore never passes the backdrop directory to filterUnreferencedImageDirs or reports it in OrphanedImageDirs. Add backdrop_path to 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
Commits

Reviewing files that changed from the base of the PR and between 6de06d1 and f11fd11.

Files selected for processing: 35
  • contracts/api/v2/openapi.json
  • docs/images-api.md
  • internal/api/handlers/admin_images.go
  • internal/api/handlers/admin_images_test.go
  • internal/api/handlers/admin_images_upload_test.go
  • internal/api/handlers/artwork_widths_test.go
  • internal/api/handlers/episode_image_provenance_test.go
  • internal/api/handlers/sections.go
  • internal/apiv2/catalog_image_provenance_test.go
  • internal/apiv2/catalog_types.go
  • internal/apiv2/library_views.go
  • internal/apiv2/operational_discovery.go
  • internal/catalog/artwork_lock_db_test.go
  • internal/catalog/artwork_selection.go
  • internal/catalog/folder_repo.go
  • internal/catalog/folder_repo_image_dirs_db_test.go
  • internal/catalog/season_repo.go
  • internal/metadata/artwork_reconcile.go
  • internal/metadata/image_cache_job_repo.go
  • internal/metadata/image_cache_processor.go
  • internal/metadata/image_ladder_backfill_db_test.go
  • internal/metadata/image_ladder_backfill_state_repo_db_test.go
  • internal/metadata/local_artwork_copy_db_test.go
  • internal/metadata/season_backdrop_cache_db_test.go
  • internal/metadata/season_images_test.go
  • internal/metadata/service.go
  • internal/models/media.go
  • internal/sections/episode_parent_artwork_db_test.go
  • internal/sections/fetcher.go
  • migrations/sql/20261028150252_add_season_backdrop.sql
  • migrations/sql/20261028150253_index_season_backdrop_path.sql
  • scripts/ci/db-contracts.txt
  • web/src/api/v2/schema.ts
  • web/src/components/ImageSelectorTab.test.tsx
  • web/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-triage silo-triage Bot removed the size/XXL 1000–2999 added + deleted lines (all files); change volume, not priority. label Oct 28, 2026
@silo-kody

silo-kody Bot commented Oct 28, 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 ❌

@Rhainland

Copy link
Copy Markdown
Contributor Author

@coderabbitai The outside-diff finding on collectRawImageDirs was right: deleting a series did not collect its season backdrop directories. Fixed in 248a9bb by reading backdrop_path from the season rows, and TestFilterUnreferencedImageDirsPostgres now checks collection as well as filtering.

@Rhainland

Copy link
Copy Markdown
Contributor Author

Evidence updated (same link, new version):

  • Next Up cards: the default home merges Next Up into the Continue Watching row, so the row now holds an in-progress card (Silo, season backdrop) and a Next Up card (Manhunt, which has no season backdrop, so it shows the series backdrop), before and after at desktop and phone width. A separate Next Up row goes through the same code (sectionOf applies the rule to continue_watching and next_up rows; TestV2ContinueWatchingEpisodeCardBackdrop covers both).
  • Season image picker: before and after at desktop and phone width.
  • Apple and Android: their Continue Watching and Next Up rows render backdrop_url as served, so they show what the web captures show without a client change. The TV focus heroes pick their own art; they are being aligned in separate silo-apple and silo-android pull requests, which will carry captures from the simulator and emulator.

Evidence: https://evidence.siloserver.org/r/silo-server/pr-3214/

@macroscopeapp

macroscopeapp Bot commented Oct 28, 2026

Copy link
Copy Markdown

/api/v2 Home and library section responses now set episode-card backdrop_url to season art, falling back to series art, for Continue Watching and Next Up. Apple and Android render that field. The current Validation tasks: line names the season-artwork tasks but omits the Series cases that exercise these rows: #1252 C4/C9, Silo-Server/silo-apple#337 C4/C9 and #338 C4/C9, and Silo-Server/silo-android#347 C4/C9 and #348 C4/C9. These cases are all Not run, so no recorded result needs re-validation; please include them as changes so their first runs cover the new card artwork.

Suggested line:
Validation tasks: changes #1210 C1 and #1211 C1; 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 (Series cases not run yet).

Automated check: Macroscope check run agent (gpt-6-luna). No validation was performed.

Posted via Macroscope — v1 validation impact

@Rhainland

Copy link
Copy Markdown
Contributor Author

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 Validation tasks: line. All are still Not run, so no recorded result changes.

@coderabbitai

coderabbitai Bot commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

Tip

For best results, initiate chat on the files or code changes.

@Rhainland Thanks for the fix in 248a9bb62. Collecting season backdrop_path values addresses the deletion cleanup gap. Extending TestFilterUnreferencedImageDirsPostgres to check collection as well as filtering covers the missed step.


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 Quick104 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

silo-kody Bot commented Oct 28, 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

Copy link
Copy Markdown
Contributor

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

  • The season page now shows the season backdrop. Season detail used the series backdrop even after an admin picked a season backdrop, so the pick only appeared on Continue Watching and Next Up cards. It now uses the season backdrop and falls back to the series backdrop. I checked this with a throwaway database test against buildSeasonDetail: it failed on 248a9bb (the season returned the series thumbhash) and passes on 0e59df3. I didn't commit that test, since this is a small display change.
  • The v2 upload contract. The upload type field said "Seasons take poster only." It now says seasons take a poster or backdrop. openapi.json and schema.ts are regenerated.
  • Two comments that still described seasons as having no backdrop.

Left for the maintainers

  • No way to remove a season backdrop (inline thread, maintainer decision). A pick can be replaced but never cleared. A backdrop picked while the series was matched to the wrong show also stays after the series is identified correctly. The options are a clear action, clearing on re-identify, both, or a follow-up.
  • Changing the default card art on every client. On /api/v2, Continue Watching and Next Up episode cards now show season or series art instead of the still, on every client, with no setting. The still is no longer on those cards in any field. The alternative is an additive season_backdrop_url that leaves the choice to each client, but that needs web, Apple and Android changes. The PR's approach is the simpler one, keeps the apps consistent, and matches what Jellyfin shows on these rows by default. I recommend keeping it.

Checked and not changed

  • Revision GC triggers, the artwork sweep surface and reference union, discovery surface 14 and its count, cache publish (UpdateArtworkIfSourceMatches), the ladder and repair queries, the trigger argument lists, and the NOT VALID then VALIDATE split all treat the season backdrop like the season poster.
  • Season upsert and UpdateMetadata never write the backdrop, so a refresh keeps the pick.
  • All v2 home, library and single-section routes go through sectionOf, so they agree. Frozen /api/v1 cards are unchanged because the parent artwork isn't serialized there.
  • ItemRepository.Delete still collects only season posters, but its only caller discards the directory list, so nothing depends on it.
  • The catalog seed bundle doesn't carry season backdrops. It also leaves out other newer artwork, such as item banners, so this follows the bundle's existing scope rather than adding a new gap.
  • The v2 image list re-sorts every provider choice by rating, which undoes the season-first gallery order. That was already true for Specials posters, so I filed it separately as fix(apiv2): season image picker puts show fallbacks ahead of the season's own images #3218.

Tests

  • The changed FetchSeasonImages tests fail on the base, so they show the gallery change.
  • TestV2ContinueWatchingEpisodeCardBackdrop doesn't build on the base because it uses the new parent artwork field, so it doesn't count as proof by itself.
  • The new and extended database tests need the new columns, so they can't run on the base. They pass on the head against a freshly migrated database.
  • make lint-changed, make verify-apiv2-openapi and make verify-apiv2-web-types pass.

Validation

I couldn't check the v1.0 board, so the PR body's Validation tasks: line is unverified. The fix commit changes the season detail page, which the season artwork cases in #1210 and #1211 may cover.

User manual and clients

  • "Choose artwork" on siloserver.org stays accurate. It doesn't say which image types a season takes, and it already tells admins to check the details page afterwards. No docs issue is needed.
  • The Apple and Android apps draw these cards from backdrop_url and the season page from the detail's backdrop_url, so neither needs a change.
  • On jellycompat, the season Backdrop image still returns the series backdrop. Matching it is optional and isn't needed for this PR.

Cross-provider review

gpt-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.

@macroscopeapp

macroscopeapp Bot commented Oct 28, 2026

Copy link
Copy Markdown

Evidence does not cover the season detail artwork change: buildSeasonDetail now uses the season backdrop instead of the series backdrop, and the web season detail page renders that field. Add before-and-after captures of the same season detail page at desktop and phone width to the evidence page, showing the season backdrop replacing the series backdrop.

Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness.

Posted via Macroscope — Visible change evidence

@Quick104
Quick104 merged commit 5d8a4bc into Silo-Server:main Oct 28, 2026
20 checks passed
@Brady3035

Copy link
Copy Markdown
Contributor

Just pulled this, absolute Fire, great change.

@tpavlek

tpavlek commented Nov 7, 2026

Copy link
Copy Markdown

Thanks @Rhainland - love that this got in!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api-v2 API v2 / Huma migration program (epic #135); long-running, stacked by phase enhancement New feature or request go Pull requests that update go code impact: polish Annoyance, cosmetic, or nice-to-have impact: usability Core flow broken or severely blocked javascript Pull requests that update javascript code priority: P2 Limited scope, workaround exists, or polish size/XL 500–999 added + deleted lines (all files); change volume, not priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants