2019-08-27, 15:17
@sualfred, I am trying to cut down the dependencies I have in the Amber skin. Right now I only use the function "playliststats" from service.library.data.provider, so I can provide an infoline (library statistics) for any menu item that is a playlist. Would you consider adding this function to embuary.helper? This is what it does (taken from the readme for service.library.data.provider):
Thanks for considering my request.
Regards,
Bart
xml:
Playliststats
Playliststats is used when a playlist or videonode is set as the onclick action in the (Home) menu. Example: Put a list in your Home.xml:
<control type="list" id="43260"> <posx>0</posx> <posy>0</posy> <width>1</width> <height>1</height> <focusedlayout/> <itemlayout/> <content>plugin://service.library.data.provider?type=playliststats&id=$INFO[Container(9000).ListItem.Property(Path)]</content> </control>
The Path property has the onclick action defined. 9000 is the ID of the Home main menu. The following properties are available when the menu item containing the playlist or video node is highlighted:
Window(Home).Property(PlaylistWatched)
Window(Home).Property(PlaylistCount)
Window(Home).Property(PlaylistTVShowCount)
Window(Home).Property(PlaylistInProgress)
Window(Home).Property(PlaylistUnWatched)
Window(Home).Property(PlaylistEpisodes)
Window(Home).Property(PlaylistEpisodesUnWatched)
Thanks for considering my request.
Regards,
Bart