1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

show album count

This commit is contained in:
Luke Pulverenti 2013-09-18 19:33:27 -04:00
parent 018f75d19b
commit eeeb7a75cd

View file

@ -283,6 +283,12 @@
} }
else if (options.context == "music") { else if (options.context == "music") {
if (item.AlbumCount) {
childText = item.AlbumCount == 1 ? "1 Album" : item.AlbumCount + " Albums";
counts.push(childText);
}
if (item.SongCount) { if (item.SongCount) {
childText = item.SongCount == 1 ? "1 Song" : item.SongCount + " Songs"; childText = item.SongCount == 1 ? "1 Song" : item.SongCount + " Songs";