From 2d298f982408f222ad344b2aa9c18bbe7dc70f12 Mon Sep 17 00:00:00 2001 From: Tyler Hoang Date: Wed, 6 May 2026 17:20:35 -0700 Subject: Add TMDB poster picker to film detail page - New movie_images() async function in services/tmdb.py fetches poster URLs from TMDB /movie/{id}/images endpoint, filtering for English and no-text posters only - New GET /tmdb/posters endpoint returns list of available posters for a TMDB ID - New POST /films/{film_id}/poster endpoint to save selected poster (mirrors the stars endpoint pattern) - Add "Change Poster" button on detail page (only shown if film has a TMDB ID) that opens a 3-column grid of posters - Selected poster gets accent border, main image updates instantly, no page reload needed - Posters are cached per load to avoid refetching on re-open Co-Authored-By: Claude Haiku 4.5 --- templates/detail.html | 96 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) (limited to 'templates/detail.html') diff --git a/templates/detail.html b/templates/detail.html index 59779d8..20897b0 100644 --- a/templates/detail.html +++ b/templates/detail.html @@ -12,6 +12,23 @@ {{ film.title[:1] }} {% endif %} + + {% if film.tmdb_id %} + + + + {% endif %} +
Shelf @@ -122,4 +139,83 @@
+ +{% if film.tmdb_id %} + +{% endif %} {% endblock %} -- cgit v1.3-2-g0d8e