hugo-medialog/internal/movies/model.go

24 lines
588 B
Go
Raw Normal View History

2024-10-09 09:12:44 +00:00
package movies
2024-10-08 19:08:01 +00:00
2024-10-09 09:12:44 +00:00
type Movie struct {
2024-10-09 19:05:11 +00:00
Title string `yaml:"title"`
IDs struct {
Slug string `json:"slug"`
IMDB string `json:"imdb"`
TMDB int `json:"tmdb"`
Trakt int `json:"trakt"`
} `json:"ids"`
2024-10-08 19:08:01 +00:00
Subtitle string `yaml:"subtitle"`
Link string `yaml:"link"`
Year int `yaml:"year"`
Rate float64 `yaml:"rate"`
Image string `yaml:"image"`
Poster string `yaml:"poster-image"`
Background string `yaml:"background-image"`
Date string `yaml:"date"`
New bool `yaml:"new"`
2024-10-08 19:08:01 +00:00
Tags []string
}
2024-10-09 09:12:44 +00:00
type Movies []Movie