L'eliminazione di un branch è definitiva. È un'operazione che NON PUÒ essere annullata. Continuare?
feat/plex-posters a master 2 settimane fa
L'eliminazione di un branch è definitiva. È un'operazione che NON PUÒ essere annullata. Continuare?
Adds two endpoints that return Plex-poster-shaped (1000×1500) PNGs composed in-process:
GET /posters/race/{grand_prix_name}/{season}.pngGET /posters/season/{season}.pngExamples after deploy:
How it works:
posters_service.PostersService.render_race_poster()resolves the GP via existingErgastService._fetch_season_schedule()+CircuitService.get_circuit_layout_by_ergast_data(), rasterises the SVG withcairosvg, recolours the stroke to white, composes onto a 1000×1500 Pillow canvas with text/strips.cache/posters/{season}-{round:02d}-{layout_slug}.pngso subsequent hits are file reads.Dockerfile changes:
libcairo2+fonts-dejavu-coresystem packages (~15 MB)pillow+cairosvgpip packagesposters_service.pyinto the imageConsumer: the new endpoints become
url_poster:entries in the Kometa F1 metadata file in the kometa module (separate PR).f4c6a56d1c.