fix(filters): check except_releases properly (#62)

This commit is contained in:
Ludvig Lundgren 2022-01-02 00:17:22 +01:00 committed by GitHub
parent 739c80fed9
commit c65c7477fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 81 additions and 1 deletions

View file

@ -534,7 +534,7 @@ func (r *Release) CheckFilter(filter Filter) bool {
return false
}
if filter.ExceptReleases != "" && !checkMultipleFilterStrings(filter.ExceptReleases, r.TorrentName, r.Clean) {
if filter.ExceptReleases != "" && checkMultipleFilterStrings(filter.ExceptReleases, r.TorrentName, r.Clean) {
r.addRejection("except_releases: unwanted release")
return false
}