feat(macros): add Description (#1863)

Add release.Description to macros
This commit is contained in:
Nuno Sénica 2024-12-07 16:44:53 +00:00 committed by GitHub
parent a6b463fb69
commit ab718b8232
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,