2011-12-17, 15:28
Jeroen Wrote:I found this kind of weird. I added an overlay for items that are resumable:
PHP Code:<property name="Progress">$INFO[Window(Home).Property(WatchList_Episode.1.IsResumable)]</property>
...
<texture>overlays/OverlayResumable.png</texture>
<visible>StringCompare(ListItem.Property(Progress),True)</visible>
Which doesn't work. I replaced the StringCompare with a SubString and that does work. Wouldn't a StringCompare be more appropriate as it is an exact match?
Stupid question, have not tried it myself:
since $INFO[Window(Home).Property(WatchList_Episode.1.IsResumable)]
has only False or True value, wouldn't it be easier to use just
<visible>$INFO[Window(Home).Property(WatchList_Episode.1.IsResumable)]</visible>