Add support for using freeleech tokens if available

This commit is contained in:
Daniel Mason 2025-07-11 10:12:43 +12:00
parent 74f777340e
commit 3656a68a27
Signed by: idanoo
GPG key ID: 387387CDBC02F132
28 changed files with 199 additions and 39 deletions

View file

@ -447,6 +447,7 @@ type FilterExport struct {
// Media-specific fields
Freeleech bool `json:"freeleech,omitempty"`
FreeleechPercent string `json:"freeleech_percent,omitempty"`
FreeleechToken bool `json:"freeleech_token,omitempty"`
Shows string `json:"shows,omitempty"`
Seasons string `json:"seasons,omitempty"`
Episodes string `json:"episodes,omitempty"`
@ -543,6 +544,7 @@ func prepareFilterForExport(filter domain.Filter, externalFilters []domain.Filte
AnnounceTypes: filter.AnnounceTypes,
Freeleech: filter.Freeleech,
FreeleechPercent: filter.FreeleechPercent,
FreeleechToken: filter.FreeleechToken,
Shows: filter.Shows,
Seasons: filter.Seasons,
Episodes: filter.Episodes,