mirror of
https://github.com/idanoo/autobrr
synced 2025-07-22 16:29:12 +00:00
feat(macros): add Cookie (#2107)
This commit is contained in:
parent
82331c3d34
commit
bc1ec844ff
1 changed files with 2 additions and 0 deletions
|
@ -33,6 +33,7 @@ type Macro struct {
|
||||||
Category string
|
Category string
|
||||||
Codec []string
|
Codec []string
|
||||||
Container string
|
Container string
|
||||||
|
Cookie string
|
||||||
CurrentDay int
|
CurrentDay int
|
||||||
CurrentHour int
|
CurrentHour int
|
||||||
CurrentMinute int
|
CurrentMinute int
|
||||||
|
@ -110,6 +111,7 @@ func NewMacro(release Release) Macro {
|
||||||
Category: release.Category,
|
Category: release.Category,
|
||||||
Codec: release.Codec,
|
Codec: release.Codec,
|
||||||
Container: release.Container,
|
Container: release.Container,
|
||||||
|
Cookie: release.RawCookie,
|
||||||
CurrentDay: currentTime.Day(),
|
CurrentDay: currentTime.Day(),
|
||||||
CurrentHour: currentTime.Hour(),
|
CurrentHour: currentTime.Hour(),
|
||||||
CurrentMinute: currentTime.Minute(),
|
CurrentMinute: currentTime.Minute(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue