diff --git a/internal/acoustid/client_test.go b/internal/acoustid/client_test.go index f885126e..e51b5214 100644 --- a/internal/acoustid/client_test.go +++ b/internal/acoustid/client_test.go @@ -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, diff --git a/internal/library/duplicate_classify.go b/internal/library/duplicate_classify.go index edc776c9..c02aa3fa 100644 --- a/internal/library/duplicate_classify.go +++ b/internal/library/duplicate_classify.go @@ -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".