mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
feat(indexers): TorrentName templating (#381)
* feat(indexers): animebytes improve parsing * Update animebytes.yaml fix music parsing * parse releaseEpisode * add torrentname template * improve releaseTags parsing * add torrentName templating conditional rendering of group and episode number add freeleech parsing * fix(indexers): improve ab releasename parsing * feat(macros): expose TorrentID, GroupID, and Size * Revert "feat(macros): expose TorrentID, GroupID, and Size" This reverts commit dae40116a1cce40f3c18d057d0af697af4407274. * change year to use parentheses Co-authored-by: ze0s <ze0s@riseup.net> Co-authored-by: varoOP <varoOP@protonmail.com>
This commit is contained in:
parent
ec07c57612
commit
48d6468503
7 changed files with 232 additions and 16 deletions
|
@ -484,6 +484,11 @@ func (r *Release) MapVars(def *IndexerDefinition, varMap map[string]string) erro
|
|||
r.Group = releaseGroup
|
||||
}
|
||||
|
||||
if episodeVal, err := getStringMapValue(varMap, "releaseEpisode"); err == nil {
|
||||
episode, _ := strconv.Atoi(episodeVal);
|
||||
r.Episode = episode
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue