Repository navigation
feat(catalog): carry series artwork, dates and ratings on episode cards - #3197
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Walkthrough
Merge Risk:
|
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:
|
|
The PR adds rendered parent-artwork fields to
Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness. Posted via Macroscope — Visible change evidence |
Episode cards on /api/v2 now carry series_poster_url, series_backdrop_url and season_poster_url with their thumbhashes, next to the unchanged poster_url and backdrop_url. An episode card's backdrop_url is usually the episode still, so a client drawing a hero from it had to fetch the episode's detail to get the series backdrop. The section episode query and the listing card context read the artwork from the series and season joins they already make; listings swap two lookups for one. Home and library sections (Continue Watching and Next Up included), catalog browse and search, Watch Tonight and episode detail carry the fields, signed in each surface's existing batch at the poster and backdrop slot sizes. Seasons store no backdrop, so there is no season backdrop field. getImageCapabilities advertises episode_parent_artwork. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Section cards now carry release_date and last_air_date on /api/v2, as listing cards do. Episode section cards carry the episode's air date as release_date and its TMDB rating beside the IMDb one, so a Continue Watching or Next Up card can say when the episode aired and show a score. Watch Tonight and recommendation cards carry the dates too. /api/v1 is unchanged. Ported from #1982 by Oliver Walton. Co-authored-by: Oliver Walton <oliverharrison03@gmail.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
e111dba to
b972d72
Compare
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:
|
Episode detail signed the stored season row, so a viewer whose language has a translated season poster saw the default one there while season detail showed the translation. Localize the season first, as season detail does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A series-wide episode detail batch read each distinct season's poster with its own query. Load and localize the series' seasons in one batch up front; single episode details and episodes of another series keep the per-season read. 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:
|
There was a problem hiding this comment.
Actionable comments posted: 1

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:
e2acbaa8-27f2-4df4-b552-0930e559968f
Files selected for processing: 21-
contracts/api/v2/fixtures/get_image_capabilities_ok.jsoncontracts/api/v2/openapi.jsondocs/images-api.mdinternal/api/handlers/artwork_widths_test.gointernal/api/handlers/catalog.gointernal/api/handlers/episode_image_provenance_test.gointernal/api/handlers/items.gointernal/api/handlers/recommendations.gointernal/api/handlers/sections.gointernal/api/handlers/watch_tonight.gointernal/apiv2/catalog_items.gointernal/apiv2/catalog_types.gointernal/apiv2/operational_discovery.gointernal/catalog/detail.gointernal/catalog/episode_repo.gointernal/models/media.gointernal/models/media_item_json_test.gointernal/sections/episode_parent_artwork_db_test.gointernal/sections/fetcher.goscripts/ci/db-contracts.txtweb/src/api/v2/schema.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
-
The episode query set the air date and TMDB rating on the item, which the frozen /api/v1 admin section preview serializes whole and whose rating_tmdb the v1 section card emits. Carry both on the section metadata and a v2-only card field instead. 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:
|
…ch Tonight swipe cards 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:
|
Problem
Related issue: N/A
Validation tasks: none (additive fields; existing card and detail fields are unchanged)
An episode card's
backdrop_urlis usually the episode still, because the card prefers the still over the series backdrop. A client that draws a large hero from the focused card, such as the Roku Home screen for a Continue Watching or Next Up episode, ends up stretching a low-resolution still. tvOS works around this by fetching the episode's detail for every focused card, since episode detail'sbackdrop_urlis the series backdrop.This adds the episode's series and season artwork to v2 episode cards so clients can pick the right image without that extra request:
series_poster_url,series_backdrop_urlandseason_poster_url, each with a*_thumbhash.poster_url,backdrop_urland the*_is_episode_stillflags keep their current meaning, so existing clients see no change. Seasons store no backdrop, so there is no season backdrop field.Section cards also say less than listing cards: they carry no
release_dateorlast_air_date, and episode section cards read onlyrating_imdb, so episodes whose provider gives only a TMDB rating arrive unrated. The second commit, ported from draft #1982 by Oliver Walton, fills those in: section, Watch Tonight and recommendation cards carry both dates, and episode section cards carry the air date asrelease_dateand both ratings.This supersedes #1982. Its series backdrop used the same field names, and its dates and ratings are the second commit here.
Approach
The fields appear on episode cards in Home and library sections (Continue Watching and Next Up included), catalog browse and search, Watch Tonight, and episode detail (
getCatalogItem). Poster fields followposter_widthand the backdrop field followsbackdrop_width, signed in each surface's existing image batch.MediaItemas transientParentArtwork, next to the still provenance, so a cached card never pairs old paths with new URLs.release_dateandlast_air_datefrom the item, as the listing renderer does; most section queries already load them. The episode query also readse.rating_tmdband passes it and the air date it already reads on the section metadata, which only the v2 card renders:/api/v1section cards keep theirrating_tmdb, and the v1 admin section preview, which serializes the item whole, is unchanged.getImageCapabilitiesadvertisesepisode_parent_artwork: true. Every new field on the shared v1/v2 structs isjson:"-", so/api/v1output does not change. The OpenAPI artifact, web types and the capabilities fixture are regenerated, anddocs/images-api.mddescribes the fields.Validation
go build ./...,gofmt -l .,go vet ./...,make lint-changed,make lint-router-recovery: clean.make test-go: passes except two jellycompat Dolby Vision tests (TestPlaybackInfoWithoutStripOrToneMapStillHasNoRoute,TestPlaybackInfoSkipsStripWhenRPUCannotBeStripped) that fail the same way on unmodifiedmainin the local environment.scripts/ci/db-contracts.txt): the section episode query and the listing query return the series and season artwork, and an episode with no season row has no season poster; an aired, rated episode carries its air date and both ratings while an unaired one carries none.make test-db-contractspasses on a freshly migrated database.make verify-apiv2-openapi,verify-apiv2-contract,verify-apiv2-fixtures,verify-apiv2-web-types,verify-route-inventory,verify-v1-route-freeze,verify-local-paths: pass.backdrop_url, and every URL returns an image. Search returns the same fields.Evidence
Evidence: https://evidence.siloserver.org/r/silo-server/pr-3197/
The page has before-and-after
home/sectionsexcerpts for the dates and ratings (same server, profile and request), and after excerpts for the artwork on a Next Up card, episode detail and search, with every image URL checked. No artwork baseline was captured on the same data before the first deploy; the base schema has no such fields.Risks
/api/v2, no migration. Each section, listing and detail response signs up to three more images per episode card, deduplicated with the card's own artwork (the season poster is often already the card's poster).silo-appleandsilo-androidcan drop their per-card detail fetch for hero art once they readseries_backdrop_url; nothing breaks if they don't. jellycompat already exposes parent backdrops through its own fields.Checklist
AI Disclosure
🤖 Generated with Claude Code