mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 00:39:13 +00:00
feat(indexers): improve RED and OPS artist parsing (#629)
* feat(indexers): improve RED and OPS artist parsing * feat(indexers): deprecate lidarr red ops workaround * feat(indexers): change artist and album field check * seperator before tags and tags optional for red * fix: update rejection msg Co-authored-by: martylukyy <35452459+martylukyy@users.noreply.github.com>
This commit is contained in:
parent
12d05f0748
commit
08826db036
4 changed files with 6 additions and 13 deletions
|
@ -375,12 +375,12 @@ func (f Filter) CheckFilter(r *Release) ([]string, bool) {
|
|||
r.addRejectionF("tags unwanted. got: %v want: %v", r.Tags, f.ExceptTags)
|
||||
}
|
||||
|
||||
if len(f.Artists) > 0 && !containsFuzzy(r.TorrentName, f.Artists) {
|
||||
r.addRejectionF("artists not matching. got: %v want: %v", r.TorrentName, f.Artists)
|
||||
if len(f.Artists) > 0 && !contains(r.Artists, f.Artists) {
|
||||
r.addRejectionF("artists not matching. got: %v want: %v", r.Artists, f.Artists)
|
||||
}
|
||||
|
||||
if len(f.Albums) > 0 && !containsFuzzy(r.TorrentName, f.Albums) {
|
||||
r.addRejectionF("albums not matching. got: %v want: %v", r.TorrentName, f.Albums)
|
||||
if len(f.Albums) > 0 && !contains(r.Title, f.Albums) {
|
||||
r.addRejectionF("albums not matching. got: %v want: %v", r.Title, f.Albums)
|
||||
}
|
||||
|
||||
// Perfect flac requires Cue, Log, Log Score 100, FLAC and 24bit Lossless
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue