feat(releases): improve freeleech parsing (#1880)

* capture fl as freeleech from vars
This commit is contained in:
ze0s 2024-12-17 16:05:18 +01:00 committed by GitHub
parent f6891bf9a3
commit 04c4bd482f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -742,7 +742,7 @@ func (r *Release) MapVars(def *IndexerDefinition, varMap map[string]string) erro
}
if freeleech, err := getStringMapValue(varMap, "freeleech"); err == nil {
fl := StringEqualFoldMulti(freeleech, "1", "free", "freeleech", "freeleech!", "yes", "VIP", "★")
fl := StringEqualFoldMulti(freeleech, "1", "fl", "free", "freeleech", "freeleech!", "yes", "VIP", "★")
if fl {
r.Freeleech = true
// default to 100 and override if freeleechPercent is present in next function