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
|
@ -176,9 +176,9 @@ func (a *announceProcessor) onLinesMatched(def *domain.IndexerDefinition, vars m
|
|||
rls.ParseString(rls.TorrentName)
|
||||
|
||||
// parse torrentUrl
|
||||
err = def.Parse.ParseTorrentUrl(vars, def.SettingsMap, rls)
|
||||
err = def.Parse.ParseMatch(vars, def.SettingsMap, rls)
|
||||
if err != nil {
|
||||
a.log.Error().Stack().Err(err).Msg("announce: could not parse torrent url")
|
||||
a.log.Error().Stack().Err(err).Msgf("announce: %v", err)
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue