fix(filters): OPS and RED split Artist and Album (#1398)

* fix(filters): OPS and RED parse and match Artist and Album

* fix(filters): rls raw
This commit is contained in:
ze0s 2024-02-12 14:16:16 +01:00 committed by GitHub
parent 1a23b69bcf
commit 51a7f71372
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 21 additions and 7 deletions

View file

@ -87,6 +87,8 @@ func TestIndexersParseAndFilter(t *testing.T) {
Quality: []string{"Lossless"},
Sources: []string{"CD"},
Formats: []string{"FLAC"},
Artists: "Dirty Dike",
Albums: "Bogies & Alcohol",
},
match: true,
},
@ -98,9 +100,10 @@ func TestIndexersParseAndFilter(t *testing.T) {
Quality: []string{"24bit Lossless"},
Sources: []string{"CD"},
Formats: []string{"FLAC"},
Albums: "Best album",
},
match: false,
rejections: []string{"quality not matching. got: [FLAC Lossless] want: [24bit Lossless]"},
rejections: []string{"albums not matching. got: Bogies & Alcohol want: Best album", "quality not matching. got: [FLAC Lossless] want: [24bit Lossless]"},
},
},
},