library, acoustid: two more real names the sweep found (#8209)
release / web (push) Successful in 1m29s
release / go (push) Successful in 1m56s
release / govulncheck (push) Successful in 20s
release / integration (push) Successful in 2m44s
release / android (push) Successful in 2m6s
release / Build signed APK (push) Successful in 1m54s
release / Build + push container image (push) Successful in 17s

A comment named a real artist across a line break, which a per-line search
passes, and two fixture titles were close enough to real ones to replace.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-03 20:34:54 -05:00
co-authored by Claude Opus 5.5
parent b25fc92e23
commit d9a20d5e96
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -23,8 +23,8 @@ const docSample = `{
"id": "0a11ce00-0000-4000-8000-000000000008", "id": "0a11ce00-0000-4000-8000-000000000008",
"recordings": [{ "recordings": [{
"duration": 639, "duration": 639,
"releasegroups": [{"type": "Album", "id": "0a11ce00-0000-4000-8000-000000000006", "title": "Before the Dusk Finds Us"}], "releasegroups": [{"type": "Album", "id": "0a11ce00-0000-4000-8000-000000000006", "title": "Before the Gulls Wake Up"}],
"title": "Lower Your Voice to Sing With the Moon", "title": "Hum Quietly Under the Pier Lamps",
"id": "0a11ce00-0000-4000-8000-000000000005", "id": "0a11ce00-0000-4000-8000-000000000005",
"artists": [{"id": "0a11ce00-0000-4000-8000-000000000007", "name": "K47"}] "artists": [{"id": "0a11ce00-0000-4000-8000-000000000007", "name": "K47"}]
}] }]
@@ -55,7 +55,7 @@ func TestParseLookup(t *testing.T) {
}{ }{
{"single match", docSample, []Candidate{{ {"single match", docSample, []Candidate{{
Recording: Recording{ Recording: Recording{
ID: "0a11ce00-0000-4000-8000-000000000005", Title: "Lower Your Voice to Sing With the Moon", ID: "0a11ce00-0000-4000-8000-000000000005", Title: "Hum Quietly Under the Pier Lamps",
DurationSec: 639, Artists: []string{"K47"}, DurationSec: 639, Artists: []string{"K47"},
}, },
Score: 1.0, Score: 1.0,
+1 -1
View File
@@ -136,7 +136,7 @@ func songKey(title, artist string) string {
var ( var (
// A bracketed credit: "(feat. Koala Bear)", "[ft. X]", "(featuring Y)". // A bracketed credit: "(feat. Koala Bear)", "[ft. X]", "(featuring Y)".
featBracket = regexp.MustCompile(`(?i)[(\[][^)\]]*\b(feat\.?|ft\.?|featuring)\s[^)\]]*[)\]]`) featBracket = regexp.MustCompile(`(?i)[(\[][^)\]]*\b(feat\.?|ft\.?|featuring)\s[^)\]]*[)\]]`)
// A credit trailing the title without brackets: "Doin' It Twice ft. Panda // A credit trailing the title without brackets: "Doin' It Twice ft. Koala
// Bear". // Bear".
featTrailing = regexp.MustCompile(`(?i)\s(feat\.?|ft\.?|featuring)\s.*$`) featTrailing = regexp.MustCompile(`(?i)\s(feat\.?|ft\.?|featuring)\s.*$`)
// "(2011 Remaster)", "[Remastered]", "- Remastered 2009". // "(2011 Remaster)", "[Remastered]", "- Remastered 2009".