feat: wire torlink for reccd season/episode artwork - #107
Merged
Merged
Conversation
Adds client-side plumbing for per-season and per-episode poster art, served through a new GET /artwork endpoint on reccd (spec'd separately, not yet implemented there). OMDb has no season/episode artwork fields at all, so this is additive: a season or episode row now asks reccd for its own artwork and prefers it over the series poster OMDb already gives fetchMeta, falling back to that series poster whenever reccd has no answer, isn't configured, or predates the endpoint. - src/recc/client.ts: fetchArtwork() client, mirroring fetchTitleSuggestions - src/core/posterCache.ts: allow image.tmdb.org in the poster CDN allowlist - src/web/routes.ts + wire.ts: GET /api/artwork, proxying reccd and enforcing the CDN allowlist on both posterUrl and stillUrl - src/web/static/resultPosters.ts + app.ts: season/episode-aware poster lookup, wired from renderGroupRow's season/group rows Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011QTsg7ie21bP9JpEPFMkyP
Rebased onto main after #105 merged, which added a "show" GroupRow kind sitting above season rows. It has no season/episode of its own, so the artwork season lookup must skip it rather than reading a field that doesn't exist on it — it keeps the series poster fetchMeta already gives. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011QTsg7ie21bP9JpEPFMkyP
WarlaxZ
force-pushed
the
feat/reccd-season-artwork
branch
from
September 1, 2026 14:15
da5aba9 to
92c9ac1
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
GET /artworkendpoint on reccd (spec'd separately for a reccd-side agent, not yet implemented there) that can supply them.fetchMeta/OMDb already returns.reccUrlconfigured, reccd predates/artwork, a lookup fails, or there's simply no artwork for that season — every case falls back to today's series poster, exactly as before this existed. Nothing regresses on an install without reccd wired up.Changed
src/recc/client.ts—fetchArtwork(), mirroring the existingfetchTitleSuggestionsclient function (timeout, 401/404 handling, never throws)src/core/posterCache.ts— addedimage.tmdb.orgto thePOSTER_HOSTSCDN allowlist, since that's the source reccd's TMDB-backed artwork will point atsrc/web/wire.ts+src/web/routes.ts— newGET /api/artworkroute, proxying reccd and enforcing the CDN allowlist on bothposterUrlandstillUrlbefore they reach the browsersrc/web/static/resultPosters.ts+app.ts—PosterDeps.fetchArtwork(optional),want()/lookup()widened to acceptseason/episode, wired fromrenderGroupRow's season/group rows throughmountResultPoster→startPosterTUI is unaffected — posters are web-only, per an existing CLAUDE.md carve-out ("a surface can't express it").
Test plan
npm test— 195 files, 3296 tests passingnpm run typecheck— cleannpm run lint— clean (pre-existingreact-hooks/exhaustive-depswarning only)npm run build— clean/artworkendpoint doesn't exist. Once it ships, verify a season/episode row picks up reccd's artwork over OMDb's series poster in the browser.🤖 Generated with Claude Code
https://claude.ai/code/session_011QTsg7ie21bP9JpEPFMkyP