Store poster_path, backdrop_path and rating on movies and series #145
Notifications
Due Date
No due date set.
Blocks
Depends on
Reference: yolo/arr#145
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Depends on: #142
§9.6 keeps rich detail out of the database and serves it through arr-meta's 24h
cache. Three fields are the deliberate exception, because the views that need
them are pure SQL: the in-library half of unified search (§9.2) and the library
view read
moviesandseriesdirectly, and a poster on those rows wouldotherwise cost one TMDB call per row on every search.
Add to both
moviesandseries:Nullable, no default. A title added before its first metadata refresh has no
artwork yet and the UI has to handle that anyway — TMDB has entries with no
poster at all.
STRICTconvention already incrates/arr-db/migrations/.REALis a valid STRICT column type; a ratingis not an integer and storing it scaled would be a trap for whoever reads it
next.
arr-daemonwrites all three, alongside thefields it already refreshes. This is the whole point of the issue: a column
nothing fills is worse than no column.
POST /api/movies,POST /api/series, and the unified-searchadd path) fill them from the TMDB response they already hold, so a title
added today has a poster before tomorrow's refresh.
vote_countis deliberately not stored. It is context for a rating on adetail page, which is served live, not something the library grid shows.
Regenerate the sqlx query data — several queries are
SELECT-listed by hand.Non-goal: no backfill job for titles already in the library. The daily refresh
reaches every one of them within a day and a one-off job would be dead code by
the end of the week.