Óscar M. Lage
2503bc9ebb
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.
21 lines
509 B
Go
21 lines
509 B
Go
package music
|
|
|
|
type Album struct {
|
|
Title string `yaml:"title"`
|
|
Artist string `yaml:"artist"`
|
|
Album string `yaml:"album"`
|
|
Slug string `yaml:"slug"`
|
|
ID string `yaml:"spotify_id"`
|
|
Subtitle string `yaml:"subtitle"`
|
|
Link string `yaml:"link"`
|
|
Year int `yaml:"year"`
|
|
Rate float64 `yaml:"rate"`
|
|
Tracks int `yaml:"tracks"`
|
|
Image string `yaml:"image"`
|
|
Date string `yaml:"date"`
|
|
New bool `yaml:"new"`
|
|
Tags []string
|
|
}
|
|
|
|
type Albums []Album
|