fix(coverart): album art goes to Minstrel's data folder, never beside the music (#8286)
release / go (push) Successful in 1m58s
release / web (push) Successful in 1m25s
release / govulncheck (push) Successful in 22s
release / integration (push) Successful in 4m24s
release / android (push) Successful in 4m33s
release / Build signed APK (push) Successful in 5m4s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Publish the release image to GHCR (dispatch only) (push) Skipped
release / Build + push container image (push) Successful in 14s
release / Verify release artifacts (tag releases only) (push) Skipped

Another program files the library now. The cover enricher wrote a
cover.jpg into each album folder it found art for, from the files' tags or
from a provider, and an admin's cover retry deleted that file again, even
if the other program had since put its own cover at that path.

The enricher now keeps every cover it writes under
<data>/album-art/<album>/cover.jpg, and a retry removes a cover only from
there. A cover.jpg an older build left beside the music stays, and is read
as the library's own.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-30 23:24:55 -05:00
co-authored by Claude Opus 5.5
parent c073e41613
commit 56285881aa
5 changed files with 108 additions and 53 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ func testHandlersWithCovers(t *testing.T) (*handlers, *coverart.Enricher) {
if err != nil {
t.Fatalf("NewSettingsService: %v", err)
}
enricher := coverart.NewEnricher(pool, slog.Default(), settings)
enricher := coverart.NewEnricher(pool, slog.Default(), settings, t.TempDir())
h.coverart = enricher
return h, enricher
}