mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 00:39:13 +00:00
fix(releases): parse missing source and misinterpreted group name (#1820)
fix(releases): parse missing source and groups
This commit is contained in:
parent
50f1e4e7d5
commit
c0882aff84
4 changed files with 162 additions and 0 deletions
|
@ -1030,6 +1030,30 @@ func containsAnySlice(tags []string, filters []string) bool {
|
|||
return false
|
||||
}
|
||||
|
||||
func basicContainsSlice(tag string, filters []string) bool {
|
||||
return basicContainsMatch([]string{tag}, filters)
|
||||
}
|
||||
|
||||
func basicContainsMatch(tags []string, filters []string) bool {
|
||||
for _, tag := range tags {
|
||||
if tag == "" {
|
||||
continue
|
||||
}
|
||||
|
||||
for _, filter := range filters {
|
||||
if filter == "" {
|
||||
continue
|
||||
}
|
||||
|
||||
if tag == filter {
|
||||
return true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
func checkFreeleechPercent(announcePercent int, filterPercent string) bool {
|
||||
filters := strings.Split(filterPercent, ",")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue