mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 00:39:13 +00:00
feat(macros): add SizeString DownloadURL and InfoURL (#1080)
* feat(macro): add new variables * SizeString * DownloadURL * InfoURL * feat(macro): add new test cases
This commit is contained in:
parent
63660946eb
commit
1bfbe38335
17 changed files with 86 additions and 52 deletions
|
@ -92,7 +92,7 @@ func (j *TorznabJob) process(ctx context.Context) error {
|
|||
rls := domain.NewRelease(j.IndexerIdentifier)
|
||||
|
||||
rls.TorrentName = item.Title
|
||||
rls.TorrentURL = item.Link
|
||||
rls.DownloadURL = item.Link
|
||||
rls.Implementation = domain.ReleaseImplementationTorznab
|
||||
|
||||
// parse size bytes string
|
||||
|
@ -102,7 +102,7 @@ func (j *TorznabJob) process(ctx context.Context) error {
|
|||
|
||||
if j.Feed.Settings != nil && j.Feed.Settings.DownloadType == domain.FeedDownloadTypeMagnet {
|
||||
rls.MagnetURI = item.Link
|
||||
rls.TorrentURL = ""
|
||||
rls.DownloadURL = ""
|
||||
}
|
||||
|
||||
// Get freeleech percentage between 0 - 100. The value is ignored if
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue