more Jellyfin integration work

This commit is contained in:
Drew Weymouth
2023-11-14 09:05:02 -08:00
parent c8255517f6
commit 2867d13498
8 changed files with 416 additions and 24 deletions
+10 -2
View File
@@ -196,8 +196,16 @@ func NewGenreList(sorting widgets.ListHeaderSort) *GenreList {
row := item.(*GenreListRow)
row.Item = a.genres[id]
row.nameLabel.Text = row.Item.Name
row.albumCountLabel.Text = strconv.Itoa(row.Item.AlbumCount)
row.trackCountLabel.Text = strconv.Itoa(row.Item.TrackCount)
if row.Item.AlbumCount >= 0 {
row.albumCountLabel.Text = strconv.Itoa(row.Item.AlbumCount)
} else {
row.albumCountLabel.Text = ""
}
if row.Item.TrackCount >= 0 {
row.trackCountLabel.Text = strconv.Itoa(row.Item.TrackCount)
} else {
row.trackCountLabel.Text = ""
}
row.Refresh()
},
)