feat(macros): add TorrentID and GroupID (#819)

* add TorrentID to list of supported macros

* added GroupID
This commit is contained in:
soup 2023-04-10 15:04:52 +02:00 committed by GitHub
parent e998f4e529
commit 2534186b5f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,9 +15,11 @@ type Macro struct {
TorrentName string TorrentName string
TorrentPathName string TorrentPathName string
TorrentHash string TorrentHash string
TorrentID string
TorrentUrl string TorrentUrl string
TorrentDataRawBytes []byte TorrentDataRawBytes []byte
MagnetURI string MagnetURI string
GroupID string
Indexer string Indexer string
Title string Title string
Resolution string Resolution string
@ -45,7 +47,9 @@ func NewMacro(release Release) Macro {
TorrentPathName: release.TorrentTmpFile, TorrentPathName: release.TorrentTmpFile,
TorrentDataRawBytes: release.TorrentDataRawBytes, TorrentDataRawBytes: release.TorrentDataRawBytes,
TorrentHash: release.TorrentHash, TorrentHash: release.TorrentHash,
TorrentID: release.TorrentID,
MagnetURI: release.MagnetURI, MagnetURI: release.MagnetURI,
GroupID: release.GroupID,
Indexer: release.Indexer, Indexer: release.Indexer,
Title: release.Title, Title: release.Title,
Resolution: release.Resolution, Resolution: release.Resolution,