- Moderator
- #1
Problem
#itemcount not created for music playlist. It is for music files, video files and video playlist as well as pictures.
Solution
Expose the playlist itemcount as #itemcount. This patch does exactly that.
#itemcount not created for music playlist. It is for music files, video files and video playlist as well as pictures.
Solution
Expose the playlist itemcount as #itemcount. This patch does exactly that.
Code:
Index: GUIMusicPlaylist.cs
===================================================================
--- GUIMusicPlaylist.cs (revision 27093)
+++ GUIMusicPlaylist.cs (working copy)
@@ -681,6 +681,12 @@
facadeLayout.Add(pItem);
}
+
+ int iTotalItems = pl.Count;
+
+ //set object count label
+ GUIPropertyManager.SetProperty("#itemcount", Util.Utils.GetObjectCountLabel(iTotalItems));
+
SetLabels();