hugo-medialog/internal/movies/model.go

24 lines
588 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"`
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 21:08:01 +02:00
Tags []string
}
2024-10-09 11:12:44 +02:00
type Movies []Movie