mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 16:59:12 +00:00
refactor(filters): music sources to media (#104)
This commit is contained in:
parent
373c85f060
commit
9b85f512e5
8 changed files with 145 additions and 35 deletions
|
@ -847,6 +847,11 @@ func (r *Release) CheckFilter(filter Filter) bool {
|
|||
return false
|
||||
}
|
||||
|
||||
if len(filter.Media) > 0 && !checkFilterSource(r.Source, filter.Media) {
|
||||
r.addRejection("source not matching")
|
||||
return false
|
||||
}
|
||||
|
||||
if filter.Log && r.HasLog != filter.Log {
|
||||
r.addRejection("wanted: log")
|
||||
return false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue