feat: rename year to max_year and add min_year to album. #118

This commit is contained in:
Deluan
2020-03-27 20:01:08 -04:00
parent fc650cd127
commit 53e8a92fed
10 changed files with 95 additions and 14 deletions
+1 -1
View File
@@ -161,7 +161,7 @@ func (b *browser) buildAlbumDir(al *model.Album, tracks model.MediaFiles) *Direc
SongCount: al.SongCount,
Duration: int(al.Duration),
Created: al.CreatedAt,
Year: al.Year,
Year: al.MaxYear,
Genre: al.Genre,
CoverArt: al.CoverArtId,
PlayCount: int32(al.PlayCount),
+1 -1
View File
@@ -65,7 +65,7 @@ func FromAlbum(al *model.Album) Entry {
e.IsDir = true
e.Parent = al.AlbumArtistID
e.Album = al.Name
e.Year = al.Year
e.Year = al.MaxYear
e.Artist = al.AlbumArtist
e.Genre = al.Genre
e.CoverArt = al.CoverArtId