mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
feat(indexers): btn improve parsing (#371)
* feat(indexers): btn improve parsing
This commit is contained in:
parent
31441ff4c3
commit
4f3091a4a7
4 changed files with 34 additions and 11 deletions
|
@ -238,7 +238,9 @@ func (r *Release) ParseReleaseTagsString(tags string) {
|
|||
if len(t.Other) > 0 {
|
||||
r.Other = append(r.Other, t.Other...)
|
||||
}
|
||||
|
||||
if r.Origin == "" && t.Origin != "" {
|
||||
r.Origin = t.Origin
|
||||
}
|
||||
if r.Container == "" && t.Container != "" {
|
||||
r.Container = t.Container
|
||||
}
|
||||
|
@ -464,6 +466,10 @@ func (r *Release) MapVars(def *IndexerDefinition, varMap map[string]string) erro
|
|||
r.Tags = tagArr
|
||||
}
|
||||
|
||||
if title, err := getStringMapValue(varMap, "title"); err == nil {
|
||||
r.Title = title
|
||||
}
|
||||
|
||||
// handle releaseTags. Most of them are redundant but some are useful
|
||||
if releaseTags, err := getStringMapValue(varMap, "releaseTags"); err == nil {
|
||||
r.ReleaseTags = releaseTags
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue