mirror of
https://github.com/idanoo/autobrr
synced 2025-07-22 16:29:12 +00:00
feat(releases): improve freeleech parsing (#1880)
* capture fl as freeleech from vars
This commit is contained in:
parent
f6891bf9a3
commit
04c4bd482f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue