mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
feat(indexers): add danishbytes (#146)
* feat(indexers): add danishbytes * docs: update supported indexers
This commit is contained in:
parent
246e3ddc26
commit
03ca3ed49a
3 changed files with 74 additions and 2 deletions
|
@ -935,7 +935,7 @@ func (r *Release) MapVars(varMap map[string]string) error {
|
|||
}
|
||||
|
||||
if freeleech, err := getStringMapValue(varMap, "freeleech"); err == nil {
|
||||
r.Freeleech = strings.EqualFold(freeleech, "freeleech") || strings.EqualFold(freeleech, "yes")
|
||||
r.Freeleech = strings.EqualFold(freeleech, "freeleech") || strings.EqualFold(freeleech, "yes") || strings.EqualFold(freeleech, "1")
|
||||
}
|
||||
|
||||
if freeleechPercent, err := getStringMapValue(varMap, "freeleechPercent"); err == nil {
|
||||
|
@ -986,6 +986,10 @@ func (r *Release) MapVars(varMap map[string]string) error {
|
|||
r.ReleaseTags = releaseTags
|
||||
}
|
||||
|
||||
if resolution, err := getStringMapValue(varMap, "resolution"); err == nil {
|
||||
r.Resolution = resolution
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue