Find album art by MusicBrainz ID (SCR-6)
CI / lint (push) Successful in 16s
CI / validate-monitoring (push) Successful in 21s
CI / federation-interop (push) Successful in 1m20s
CI / test (push) Successful in 5m50s
CI / images (push) Skipped
CI / assets (push) Skipped
CI / python-package (push) Skipped
CI / trigger-deploy (push) Skipped
CI / notify (push) Successful in 9s

Corrections accept a release MBID as well as a release-group MBID, and the
worker uses a scrobble's recording MBID to find the release-group before falling
back to the text search. Counts matched/missed recording lookups.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
mattandClaude Sonnet 5.5 committed 2026-10-06 23:37:54 +01:00
1 parent ad383b602e
commit 2c4c42a42b
9 files changed
+250 -28

No files matched your search

+3 -1
View File
@@ -127,10 +127,11 @@ def correct_art(body):
"""Correct a failed lookup
Queues a new lookup with different search text, or straight from a MusicBrainz
release-group ID. The background worker resolves it; poll the failures list, or just
release-group or release ID. The background worker resolves it; poll the failures list, or just
fetch the art later. Replaces any earlier upload or correction of yours.
"""
mbid = body.get("release_group_mbid")
release_mbid = body.get("release_mbid")
art.request_correction(
g.user.id,
body["artist"],
@@ -138,6 +139,7 @@ def correct_art(body):
body.get("search_artist"),
body.get("search_album"),
str(mbid) if mbid else None,
str(release_mbid) if release_mbid else None,
)
return art.get_override(g.user.id, body["artist"], body["album"])