This commit is contained in:
2026-08-23 14:13:18 -05:00
parent 789bf91eed
commit 866f243f1b
37 changed files with 1761 additions and 58 deletions
+4 -1
View File
@@ -51,7 +51,10 @@ func (h *Web) handleCoverArt(w http.ResponseWriter, r *http.Request) {
// row, extracting embedded artwork to a temp file on demand. isTemp
// tells the caller whether it must remove the returned path afterward.
func (h *Web) resolveCoverArtSource(ctx context.Context, art *database.CoverArt) (path, contentHash string, isTemp bool, err error) {
if art.Source == "folder" {
if art.Source == "folder" || art.Source == "external" {
// "external" is a locally-downloaded artist photo or an
// admin-uploaded/URL-sourced cover override — already a plain
// file on disk, same as a folder image.
return art.SourcePath, art.ContentHash, false, nil
}