add option to show album years in grid views

This commit is contained in:
Drew Weymouth
2024-06-27 17:44:41 -07:00
parent 2b39c6ba66
commit edf85a4162
15 changed files with 179 additions and 43 deletions
+4
View File
@@ -59,6 +59,7 @@ type AlbumPageConfig struct {
type AlbumsPageConfig struct {
SortOrder string
ShowYears bool
}
type ArtistPageConfig struct {
@@ -73,6 +74,7 @@ type ArtistsPageConfig struct {
type FavoritesPageConfig struct {
InitialView string
TracklistColumns []string
ShowAlbumYears bool
}
type PlaylistPageConfig struct {
@@ -167,6 +169,7 @@ func DefaultConfig(appVersionTag string) *Config {
},
AlbumsPage: AlbumsPageConfig{
SortOrder: string("Recently Added"),
ShowYears: false,
},
ArtistPage: ArtistPageConfig{
InitialView: "Discography",
@@ -178,6 +181,7 @@ func DefaultConfig(appVersionTag string) *Config {
FavoritesPage: FavoritesPageConfig{
TracklistColumns: []string{"Album", "Time", "Plays"},
InitialView: "Albums",
ShowAlbumYears: false,
},
PlaylistPage: PlaylistPageConfig{
TracklistColumns: []string{"Album", "Time", "Plays"},