From 2534186b5f36eedfadaa3fffe5d440d29d94b185 Mon Sep 17 00:00:00 2001 From: soup Date: Mon, 10 Apr 2023 15:04:52 +0200 Subject: [PATCH] feat(macros): add TorrentID and GroupID (#819) * add TorrentID to list of supported macros * added GroupID --- internal/domain/macros.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/domain/macros.go b/internal/domain/macros.go index e66c54d..9b2a3a7 100644 --- a/internal/domain/macros.go +++ b/internal/domain/macros.go @@ -15,9 +15,11 @@ type Macro struct { TorrentName string TorrentPathName string TorrentHash string + TorrentID string TorrentUrl string TorrentDataRawBytes []byte MagnetURI string + GroupID string Indexer string Title string Resolution string @@ -45,7 +47,9 @@ func NewMacro(release Release) Macro { TorrentPathName: release.TorrentTmpFile, TorrentDataRawBytes: release.TorrentDataRawBytes, TorrentHash: release.TorrentHash, + TorrentID: release.TorrentID, MagnetURI: release.MagnetURI, + GroupID: release.GroupID, Indexer: release.Indexer, Title: release.Title, Resolution: release.Resolution,