Add year to ChildTracks of an Album
This commit is contained in:
@@ -50,6 +50,7 @@ func NewTrackByTags(t *db.Track, album *db.Album) *TrackChild {
|
||||
Duration: t.Length,
|
||||
Bitrate: t.Bitrate,
|
||||
Type: "music",
|
||||
Year: album.TagYear,
|
||||
}
|
||||
if album.Cover != "" {
|
||||
ret.CoverID = album.SID()
|
||||
|
||||
@@ -140,6 +140,7 @@ type TrackChild struct {
|
||||
TrackNumber int `xml:"track,attr,omitempty" json:"track,omitempty"`
|
||||
DiscNumber int `xml:"discNumber,attr,omitempty" json:"discNumber,omitempty"`
|
||||
Type string `xml:"type,attr,omitempty" json:"type,omitempty"`
|
||||
Year int `xml:"year,attr,omitempty" json:"year,omitempty"`
|
||||
}
|
||||
|
||||
type Artists struct {
|
||||
|
||||
Reference in New Issue
Block a user