mirror of
https://github.com/simon-ding/polaris.git
synced 2026-06-09 11:39:46 +08:00
feat: better jav search support
This commit is contained in:
@@ -30,6 +30,7 @@ func (Media) Fields() []ent.Field {
|
||||
field.String("target_dir").Optional(),
|
||||
field.Bool("download_history_episodes").Optional().Default(false).Comment("tv series only"),
|
||||
field.JSON("limiter", MediaLimiter{}).Optional(),
|
||||
field.JSON("extras", MediaExtras{}).Optional(),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -44,3 +45,9 @@ type MediaLimiter struct {
|
||||
SizeMin int `json:"size_min"` //in B
|
||||
SizeMax int `json:"size_max"` //in B
|
||||
}
|
||||
|
||||
type MediaExtras struct {
|
||||
IsAdult bool `json:"is_adult"`
|
||||
IsJav bool `json:"is_jav"`
|
||||
JavId string `json:"javid"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user