hugo-medialog/internal/games/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

22 lines
588 B
Go

package games
type Game struct {
Title string `yaml:"title"`
Platform string `yaml:"platform"`
ID int `yaml:"igdb_id"`
Link string `yaml:"link"`
Slug string `yaml:"slug"`
Subtitle string `yaml:"subtitle"`
Year string `yaml:"year"`
Rate float64 `yaml:"rate"`
Progress string `yaml:"progress"`
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 Games []Game