fix(indexers): PTFiles freeleech parsing (#1422)

fix(releases): freeleech parsing
This commit is contained in:
martylukyy 2024-02-22 14:41:27 +01:00 committed by GitHub
parent 8156c8d66e
commit ff8af1338f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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