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
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:
@@ -23,8 +23,8 @@ const docSample = `{
|
||||
"id": "0a11ce00-0000-4000-8000-000000000008",
|
||||
"recordings": [{
|
||||
"duration": 639,
|
||||
"releasegroups": [{"type": "Album", "id": "0a11ce00-0000-4000-8000-000000000006", "title": "Before the Dusk Finds Us"}],
|
||||
"title": "Lower Your Voice to Sing With the Moon",
|
||||
"releasegroups": [{"type": "Album", "id": "0a11ce00-0000-4000-8000-000000000006", "title": "Before the Gulls Wake Up"}],
|
||||
"title": "Hum Quietly Under the Pier Lamps",
|
||||
"id": "0a11ce00-0000-4000-8000-000000000005",
|
||||
"artists": [{"id": "0a11ce00-0000-4000-8000-000000000007", "name": "K47"}]
|
||||
}]
|
||||
@@ -55,7 +55,7 @@ func TestParseLookup(t *testing.T) {
|
||||
}{
|
||||
{"single match", docSample, []Candidate{{
|
||||
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"},
|
||||
},
|
||||
Score: 1.0,
|
||||
|
||||
@@ -136,7 +136,7 @@ func songKey(title, artist string) string {
|
||||
var (
|
||||
// A bracketed credit: "(feat. Koala Bear)", "[ft. X]", "(featuring Y)".
|
||||
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".
|
||||
featTrailing = regexp.MustCompile(`(?i)\s(feat\.?|ft\.?|featuring)\s.*$`)
|
||||
// "(2011 Remaster)", "[Remastered]", "- Remastered 2009".
|
||||
|
||||
Reference in New Issue
Block a user