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
@@ -75,7 +75,7 @@ ListenBrainz, email, metadata sources and recommendation tuning are set in the w
## Setup pitfalls
- **The library mount has to be writable by uid 1000.** Minstrel deletes a file only when an admin asks it to, such as merging duplicates. It never moves, renames or retags your files, so a tagger or download manager can keep filing into the same folder. Mount the library `:ro` to forbid writes: those actions then refuse and say why.
- **The library mount has to be writable by uid 1000.** Minstrel deletes a file only when an admin asks it to, such as merging duplicates. It never adds, moves, renames or retags files there (album art it finds or fetches is kept in its own data folder), so a tagger or download manager can keep filing into the same folder. Mount the library `:ro` to forbid writes: those actions then refuse and say why.
- **`MINSTREL_LIBRARY_SCAN_PATHS` names the path inside the container** (`/music`), not the folder on your host.
- **On the internet, put it behind HTTPS.** Plain `http://` is fine on a network you trust. For a public server, bind the port to `127.0.0.1` and put a reverse proxy in front: see [docs/hosting.md](docs/hosting.md).