weee
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user