mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
feat(filters): smart episode (#563)
* feat(filters): initial smart episode * feat(smart-episode): pseudo-logic * feat(filters): check releases * feat(filters): update logic * feat(web): smart episode (#562) * add frontend part for smart episode feature * change description for smart episode help text * fix wording * feat(filters): smart-episode logic Co-authored-by: Kyle Sanderson <kyle.leet@gmail.com> Co-authored-by: xoaaC <35452459+xoaaC@users.noreply.github.com>
This commit is contained in:
parent
45e03c10b6
commit
38795be9ea
11 changed files with 132 additions and 17 deletions
|
@ -81,6 +81,7 @@ type Filter struct {
|
|||
Bonus []string `json:"bonus,omitempty"`
|
||||
Freeleech bool `json:"freeleech,omitempty"`
|
||||
FreeleechPercent string `json:"freeleech_percent,omitempty"`
|
||||
SmartEpisode bool `json:"smart_episode"`
|
||||
Shows string `json:"shows,omitempty"`
|
||||
Seasons string `json:"seasons,omitempty"`
|
||||
Episodes string `json:"episodes,omitempty"`
|
||||
|
@ -153,6 +154,7 @@ type FilterUpdate struct {
|
|||
Bonus *[]string `json:"bonus,omitempty"`
|
||||
Freeleech *bool `json:"freeleech,omitempty"`
|
||||
FreeleechPercent *string `json:"freeleech_percent,omitempty"`
|
||||
SmartEpisode *bool `json:"smart_episode,omitempty"`
|
||||
Shows *string `json:"shows,omitempty"`
|
||||
Seasons *string `json:"seasons,omitempty"`
|
||||
Episodes *string `json:"episodes,omitempty"`
|
||||
|
|
|
@ -32,6 +32,7 @@ type ReleaseRepo interface {
|
|||
Stats(ctx context.Context) (*ReleaseStats, error)
|
||||
StoreReleaseActionStatus(ctx context.Context, actionStatus *ReleaseActionStatus) error
|
||||
Delete(ctx context.Context) error
|
||||
CanDownloadShow(ctx context.Context, title string, season int, episode int) (bool, error)
|
||||
}
|
||||
|
||||
type Release struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue