fix(releases): parse missing source and misinterpreted group name (#1820)

fix(releases): parse missing source and groups
This commit is contained in:
ze0s 2024-11-23 15:08:58 +01:00 committed by GitHub
parent 50f1e4e7d5
commit c0882aff84
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 162 additions and 0 deletions

View file

@ -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, ",")