mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 16:59:12 +00:00
fix(indexers): PTFiles freeleech parsing (#1422)
fix(releases): freeleech parsing
This commit is contained in:
parent
8156c8d66e
commit
ff8af1338f
1 changed files with 1 additions and 1 deletions
|
@ -659,7 +659,7 @@ func (r *Release) MapVars(def *IndexerDefinition, varMap map[string]string) erro
|
||||||
}
|
}
|
||||||
|
|
||||||
if freeleech, err := getStringMapValue(varMap, "freeleech"); err == nil {
|
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 {
|
if fl {
|
||||||
r.Freeleech = true
|
r.Freeleech = true
|
||||||
// default to 100 and override if freeleechPercent is present in next function
|
// default to 100 and override if freeleechPercent is present in next function
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue