feat(indexers): add danishbytes (#146)

* feat(indexers): add danishbytes

* docs: update supported indexers
This commit is contained in:
Ludvig Lundgren 2022-02-19 20:23:27 +01:00 committed by GitHub
parent 246e3ddc26
commit 03ca3ed49a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 74 additions and 2 deletions

View file

@ -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
}