mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
feat(macros): add Description (#1863)
Add release.Description to macros
This commit is contained in:
parent
a6b463fb69
commit
ab718b8232
1 changed files with 2 additions and 0 deletions
|
@ -32,6 +32,7 @@ type Macro struct {
|
||||||
CurrentMonth int
|
CurrentMonth int
|
||||||
CurrentSecond int
|
CurrentSecond int
|
||||||
CurrentYear int
|
CurrentYear int
|
||||||
|
Description string
|
||||||
DownloadUrl string
|
DownloadUrl string
|
||||||
Episode int
|
Episode int
|
||||||
FilterID int
|
FilterID int
|
||||||
|
@ -103,6 +104,7 @@ func NewMacro(release Release) Macro {
|
||||||
CurrentMonth: int(currentTime.Month()),
|
CurrentMonth: int(currentTime.Month()),
|
||||||
CurrentSecond: currentTime.Second(),
|
CurrentSecond: currentTime.Second(),
|
||||||
CurrentYear: currentTime.Year(),
|
CurrentYear: currentTime.Year(),
|
||||||
|
Description: release.Description,
|
||||||
DownloadUrl: release.DownloadURL,
|
DownloadUrl: release.DownloadURL,
|
||||||
Episode: release.Episode,
|
Episode: release.Episode,
|
||||||
FilterID: release.FilterID,
|
FilterID: release.FilterID,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue