2019-04-30, 09:12
Hi,
is there a way, to show count of movies in a movieset on a listcontrol?
is there a way, to show count of movies in a movieset on a listcontrol?
(2019-04-30, 09:12)beatmasterrs Wrote: Hi,
is there a way, to show count of movies in a movieset on a listcontrol?
SkinHelper.ListItem.UnwatchedCount / SkinHelper.ListItem.Count
(2019-04-30, 09:12)beatmasterrs Wrote: is there a way, to show count of movies in a moviesetYes, but unfortunately only the SkinHelper code as described by @cartman.dos .
(2019-05-01, 00:27)chrissix Wrote:(2019-04-30, 09:12)beatmasterrs Wrote: is there a way, to show count of movies in a moviesetYes, but unfortunately only the SkinHelper code as described by @cartman.dos .
It is unfortunately very slow and may be that it works worse without Internet connection as with (for whatever reason that behavior is on my side)
I hope so in the next Kodi 19 Matrix (not the Reeves Neo Matrix, the Arnie Commando Matrix) gets in Kodi core.
<content>videodb://movies/sets/$INFO[ListItem.SetID]</content>
xml:<control type="list" id="59555">
<left>-1000</left>
<top>-1000</top>
<visible>ListItem.IsCollection</visible>
<itemlayout />
<focusedlayout />
<content>$INFO[ListItem.FolderPath]</content>
</control>
will give you the number of movies in the moviesetxml:$INFO[Container(59555).NumItems]
xml:
<control type="group">
<control type="list" id="59555">
<left>-1000</left>
<top>-1000</top>
<visible>ListItem.IsCollection</visible>
<itemlayout />
<focusedlayout />
<content>$INFO[ListItem.FolderPath]</content>
</control>
<control type="label" id="19124" description="debug">
<top>0</top>
<right>100</right>
<width>500</width>
<aligny>center</aligny>
<height>64</height>
<align>right</align>
<font>SmallNavi</font>
<textcolor>Dark1</textcolor>
<selectedcolor>Dark1</selectedcolor>
<label>$INFO[Container(59555).NumItems]</label>
<visible>ListItem.IsCollection</visible>
</control>
<control type="list" id="50">
<top>PosterPad</top>
<height>PosterH</height>
<left>ListX</left>
<right>SidePad</right>
<onleft condition="!Skin.HasSetting(global.kioskmode)">9000</onleft>
<onright>1627</onright>
<onup>50</onup>
<ondown>50</ondown>
<pagecontrol>1627</pagecontrol>
<viewtype label="535">list</viewtype>
<scrolltime tween="quadratic">400</scrolltime>
<itemlayout condition="Skin.HasSetting(511ListInfo)" width="ListW" height="91">
<control type="group">
<control type="label">
<top>28</top>
<posx>30</posx>
<width>auto</width>
<aligny>center</aligny>
<height>64</height>
<font>Small24</font>
<label>$INFO[Container(59555).NumItems]</label>
<textcolor>Dark2</textcolor>
<selectedcolor>Dark1</selectedcolor>
</control>
<control type="label">
<top>28</top>
<posx>30</posx>
<width>auto</width>
<aligny>center</aligny>
<height>64</height>
<font>Small24</font>
<label>$INFO[Control.GetLabel(19124)]</label>
<textcolor>Dark2</textcolor>
<selectedcolor>Dark1</selectedcolor>
</control>
</control>
</itemlayout>
<focusedlayout width="ListW" height="91" condition="Skin.HasSetting(511ListInfo)">
<control type="group">
<control type="label">
<top>28</top>
<posx>30</posx>
<width>auto</width>
<aligny>center</aligny>
<height>64</height>
<font>Small24</font>
<label>$INFO[Container(59555).NumItems]</label>
<textcolor>Dark2</textcolor>
<selectedcolor>Dark1</selectedcolor>
</control>
<control type="label">
<top>28</top>
<posx>30</posx>
<width>auto</width>
<aligny>center</aligny>
<height>64</height>
<font>Small24</font>
<label>$INFO[Control.GetLabel(19124)]</label>
<textcolor>Dark2</textcolor>
<selectedcolor>Dark1</selectedcolor>
</control>
</control>
</focusedlayout>
</control>
</Control>
? In the label itself outside the list, the count is displayed correctly...xml:<label>$INFO[Control.GetLabel(19124)]</label>
(2019-05-12, 02:13)jurialmunkey Wrote: Accessing external infolabels from a list control never works properly. For performance reasons, list controls are limited to using infolabels only from listitems.
To use an external label inside the list, you would need to recreate the list as a grouplist (i.e. like how coverflow views are done).
I have managed to get external labels into a list using static items, but that's the closest I've come. You can see it in action in AZ2's decade hub:
https://github.com/jurialmunkey/skin.arc...de_Hub.xml