feat(indexers): add HUNO (#533)

This commit is contained in:
ze0s 2022-11-11 14:01:35 +01:00 committed by GitHub
parent 1b6fd01575
commit 14ecaa530e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 95 additions and 0 deletions

View file

@ -488,6 +488,13 @@ func (r *Release) MapVars(def *IndexerDefinition, varMap map[string]string) erro
}
}
if internal, err := getStringMapValue(varMap, "internal"); err == nil {
i := StringEqualFoldMulti(internal, "internal", "yes", "1")
if i {
r.Origin = "INTERNAL"
}
}
if yearVal, err := getStringMapValue(varMap, "year"); err == nil {
year, err := strconv.Atoi(yearVal)
if err != nil {