(2016-12-28, 14:52)BobCratchett Wrote: Braz, I was wrong - the content is actually generated from this function. Looking at it, I can see it will only work properly for rule-based nodes and not the path-based node that is recently added episodes. I'll give this some thought to how to fix properly, but if it requires major refactoring to do chances are the changes will only be suitable for the Kodi 18 version of the script.
As a workaround, you may be able to do something like this in a template:-
Code:
<property name="widgetType" tag="property" attribute="name|widgetPath" value="videodb://recentlyaddedepisodes">Episodes</property>
<property name="widgetType" tag="property" attribute="name|widgetType" />
(Which is to say, set $SKINSHORTCUTS[widgetType]' to 'Episodes' if widgetPath == videodb://recentlyaddedepisodes, otherwise set it to the value of widgetType)
Hi Bob, thanks for the tip...I wasn't able to get the template workaround to work though. Both widgets, videodb://recentlyaddedepisodes and library://video/tvshows/recentlyaddedepisodes.xml/ continue to have a widgetType of tvshows. I'm using the following variable to display the widget label.
Code:
<variable name="WidgetThumbnailLabel">
<value condition="String.IsEqual(Container(9000).ListItem.Property(widgetType),episodes)">$INFO[ListItem.Season,,x]$INFO[ListItem.Episode,,. ]$INFO[ListItem.Title]</value>
<value condition="!String.IsEmpty(ListItem.Title)">$INFO[ListItem.Title]</value>
<value>$INFO[ListItem.Label]</value>
</variable>
As is, the first value gets skipped and the second is displayed. If I change "episodes" in the first value to "videos", it still gets skipped and the second is displayed. If I change "episodes" in the first value to "tvshows", the first value is displayed (which is what I want). This tells me that the widgetType for the recently added episodes widgets is "tvshows", right? I've never been able to get a widgetType of "videos" for these widgets.
This isn't a priority, was just something I noticed in my testing and thought I should mention. Thanks again for your support!
Update: Duh, easiest workaround was just to change the condition of the first value to:
Code:
String.Contains(Container(9000).ListItem.Property(widgetPath),recentlyaddedepisodes)