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
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:
1 parent
ad383b602e
commit
2c4c42a42b
9 files changed
+250
-28
No files matched your search
@@ -119,10 +119,11 @@ function albumRow(item) {
|
||||
correction.addEventListener("submit", (event) => {
|
||||
event.preventDefault();
|
||||
const body = { artist, album };
|
||||
const { search_artist, search_album, release_group_mbid } = correction.elements;
|
||||
const { search_artist, search_album, release_group_mbid, release_mbid } = correction.elements;
|
||||
if (search_artist.value.trim()) body.search_artist = search_artist.value.trim();
|
||||
if (search_album.value.trim()) body.search_album = search_album.value.trim();
|
||||
if (release_group_mbid.value.trim()) body.release_group_mbid = release_group_mbid.value.trim();
|
||||
if (release_mbid.value.trim()) body.release_mbid = release_mbid.value.trim();
|
||||
act(() => api("/art/album/correction", { method: "PUT", body }), `Queued a corrected lookup for ${album}.`);
|
||||
});
|
||||
|
||||
@@ -165,6 +166,13 @@ function correctionForm(item, query) {
|
||||
"If you know it, paste the ID from the album's MusicBrainz page. It skips the search.",
|
||||
{ placeholder: "00000000-0000-0000-0000-000000000000", pattern: "[0-9a-fA-F-]{36}" },
|
||||
),
|
||||
field(
|
||||
"release_mbid",
|
||||
"MusicBrainz release ID (optional)",
|
||||
own.release_mbid,
|
||||
"Or a specific release's ID, if that's the one you have. Use either this or the release-group ID.",
|
||||
{ placeholder: "00000000-0000-0000-0000-000000000000", pattern: "[0-9a-fA-F-]{36}" },
|
||||
),
|
||||
h("button", { type: "submit", class: "button" }, "Look it up"),
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user