feat: bundled default artwork + artwork in the UI #3
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/artwork-ui"
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?
What
Feed artwork, end to end: a real bundled logo, per-Episode thumbnails in the UI, and header art.
media/mediacast_512.png(512×512 PNG) is embedded via a smallmediapackage and served at/artwork.pngwhenMEDIACAST_ARTWORKis unset; the old placeholder is gone. Override semantics unchanged: set-but-missing path → 404, any container-readable filesystem path works.handleArtworknow useshttp.ServeContent— the file's extension drives the type (.jpg→ image/jpeg,.png→ image/png) withDetectContentTypefallback;If-Modified-Sinceand HEAD come free.ArtURL; empty →/artwork.pngfallback. Queued/processing/failed rows render no thumbnail.Tests
New
internal/server/artwork_test.go(bundled default serves PNG, extension-driven override type, missing override → 404) plus page tests for header art,ArtURLthumbs, no-art fallback, lazy loading, and no-thumb on non-done rows. Existing artwork/feed assertions flipped from JPEG to PNG.mise run check+mise run testgreen.Closes MCAST-15.
de1ae66dafdc81f1f804