hugo-medialog/internal/movies/model.go

26 lines
661 B
Go
Raw Normal View History

2024-10-09 11:12:44 +02:00
package movies
2024-10-08 21:08:01 +02:00
2024-10-09 11:12:44 +02:00
type Movie struct {
2024-10-09 21:05:11 +02: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 21:08:01 +02:00
Subtitle string `yaml:"subtitle"`
Link string `yaml:"link"`
Year int `yaml:"year"`
Rate float64 `yaml:"rate"`
2024-10-24 17:16:17 +02:00
Progress string `yaml:"progress"`
2024-10-08 21:08:01 +02:00
Image string `yaml:"image"`
Poster string `yaml:"poster-image"`
Background string `yaml:"background-image"`
Date string `yaml:"date"`
New bool `yaml:"new"`
Query string `yaml:"query"`
2024-10-08 21:08:01 +02:00
Tags []string
}
2024-10-09 11:12:44 +02:00
type Movies []Movie