hugo-medialog/internal/series/model.go
Óscar M. Lage 2503bc9ebb Fix: update by default
From now on, the update option (no api calls involved) is the default one.
No matter if --update is being passed in the command line, it's the default option if there
is no a "new: true" variable in the yaml.

If there is a "new: true" variable in the yaml that entry will be processed as new, calling
all the apis we need to call to archive the right information.
2024-10-14 16:52:15 +02:00

27 lines
692 B
Go

package series
type Serie struct {
Title string `yaml:"title"`
IDs struct {
Slug string `json:"slug"`
IMDB string `json:"imdb"`
TMDB int `json:"tmdb"`
Trakt int `json:"trakt"`
TVDB int `json:"tvdb"`
} `json:"ids"`
Subtitle string `yaml:"subtitle"`
Link string `yaml:"link"`
Year int `yaml:"year"`
Rate float64 `yaml:"rate"`
Progress string `yaml:"progress"`
Episode string `yaml:"episode"`
Image string `yaml:"image"`
Poster string `yaml:"poster-image"`
Background string `yaml:"background-image"`
Date string `yaml:"date"`
New bool `yaml:"new"`
Tags []string
}
type Series []Serie