show full OpenSubsonic date where available

This commit is contained in:
Drew Weymouth
2024-12-23 17:23:26 -08:00
parent 37f678e5f3
commit ff3b1addf8
8 changed files with 108 additions and 20 deletions
+2 -2
View File
@@ -61,8 +61,8 @@ func (g gridViewAlbumIterator) NextN(n int) []GridViewItemModel {
Secondary: al.ArtistNames,
SecondaryIDs: al.ArtistIDs,
}
if al.Year > 0 {
model.Suffix = strconv.Itoa(al.Year)
if y := al.Date.Year; y != nil {
model.Suffix = strconv.Itoa(*al.Date.Year)
}
return model
})