For me, smart playlist statistics aren't working? I have my series split based on path. The playlists work, I have random fanart based on the playlist. All working okay, but the library stats don't. I get music video information? My playlists are for tvshows, so that shouldn't be the issue?
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<smartplaylist type="tvshows">
<name>All TV Shows</name>
<match>all</match>
<rule field="path" operator="contains">
<value>/Series/</value>
</rule>
<rule field="numepisodes" operator="isnot">
<value>0</value>
</rule>
<order direction="ascending">random</order>
</smartplaylist>
I do have an old variables.xml which does work for me, but with plugin://service.library.data.provider? instead of plugin://script.embuary.helper/?. I'm no skinner, so I don't know why embuary helper is the preferred option.
working code:
<value condition="String.IsEqual(Container(9000).ListItem.Property(InfoLine),$LOCALIZE[31097])">$INFO[Window(Home).Property(PlaylistCount),[COLOR grey]$LOCALIZE[20342]:[/COLOR] ]$INFO[Window(Home).Property(PlaylistWatched),[COLOR grey] • $LOCALIZE[16102]:[/COLOR] ]$INFO[Window(Home).Property(PlaylistUnWatched),[COLOR grey] • $LOCALIZE[16101]:[/COLOR] ]$INFO[Window(Home).Property(PlaylistInProgress),[COLOR grey] • $LOCALIZE[575]:[/COLOR] ]</value>
<value condition="String.IsEqual(Container(9000).ListItem.Property(InfoLine),$LOCALIZE[31098])">$INFO[Window(Home).Property(PlaylistTVShowCount),[COLOR grey]$LOCALIZE[20343]:[/COLOR] ]$INFO[Window(Home).Property(PlaylistEpisodes),[COLOR grey] • $LOCALIZE[20360]:[/COLOR] ]$INFO[Window(Home).Property(PlaylistEpisodesUnWatched),[COLOR grey] • $LOCALIZE[16101]:[/COLOR] ]</value>
<value condition="String.IsEqual(Container(9000).ListItem.Property(InfoLine),$LOCALIZE[31099])">$INFO[Window(Home).Property(PlaylistCount),[COLOR grey]$LOCALIZE[20389]:[/COLOR] ]$INFO[Window(Home).Property(PlaylistWatched),[COLOR grey] • $LOCALIZE[16102]:[/COLOR] ]$INFO[Window(Home).Property(PlaylistUnWatched),[COLOR grey] • $LOCALIZE[16101]:[/COLOR] ]$INFO[Window(Home).Property(PlaylistInProgress),[COLOR grey] • $LOCALIZE[575]:[/COLOR] ]</value>
</variable>
<variable name="PlaylistStatsContentVar">
<!-- Ray: smart playlist library stats -->
<value condition="String.IsEqual(Container(9000).ListItem.Property(InfoLine),$LOCALIZE[31097])">plugin://service.library.data.provider?type=playliststats&id=$INFO[Container(9000).ListItem.Property(path)]</value>
<value condition="String.IsEqual(Container(9000).ListItem.Property(InfoLine),$LOCALIZE[31098])">plugin://service.library.data.provider?type=playliststats&id=$INFO[Container(9000).ListItem.Property(path)]</value>
<value condition="String.IsEqual(Container(9000).ListItem.Property(InfoLine),$LOCALIZE[31099])">plugin://service.library.data.provider?type=playliststats&id=$INFO[Container(9000).ListItem.Property(path)]</value>