feat: add db extra fields

This commit is contained in:
Simon Ding
2024-08-24 21:03:08 +08:00
parent b7ca02429c
commit 60110f4ca6
3 changed files with 29 additions and 16 deletions

View File

@@ -47,7 +47,16 @@ type MediaLimiter struct {
}
type MediaExtras struct {
IsAdult bool `json:"is_adult"`
IsJav bool `json:"is_jav"`
JavId string `json:"javid"`
IsAdultMovie bool `json:"is_adult_movie"`
JavId string `json:"javid"`
//OriginCountry []string `json:"origin_country"`
OriginalLanguage string `json:"original_language"`
Genres []struct {
ID int64 `json:"id"`
Name string `json:"name"`
} `json:"genres"`
}
func (m *MediaExtras) IsJav() bool {
return m.IsAdultMovie && m.JavId != ""
}