2014-02-20, 15:20
I am trying to make a skin show a dvd logo icon whenever the word "movies" appears in the path of the video file and I can't get it to work for the life of me. I have a variable named SourceFlagVar that contains:
The variable is used in:
The other conditions in the variable all work which tells me the path to the image file is being found, but the SubString(ListItem.Path.movies) just will not work. The movies that I want flagged with the icon are all in the path: E:\Server\Movies\Movie Ttitle. I have another condition in the same variable that looks for:
And it works just fine. Am I doing something wrong?
Code:
<value condition="SubString(ListItem.Filename,dvd) | SubString(ListItem.Path,movies) | StringCompare(ListItem.FileExtension,iso) | StringCompare(ListItem.FileExtension,ifo)">dvd</value>
The variable is used in:
Code:
<include name="SourceFlag">
<control type="image" id="4023">
<!--Source logo-->
<width>70</width>
<height>50</height>
<aspectratio>keep</aspectratio>
<texture>$VAR[SourceFlagVar,flags/source/,.png]</texture>
<colordiffuse>black</colordiffuse>
<visible>!IsEmpty(Control.GetLabel(4023))</visible>
</control>
</include>
The other conditions in the variable all work which tells me the path to the image file is being found, but the SubString(ListItem.Path.movies) just will not work. The movies that I want flagged with the icon are all in the path: E:\Server\Movies\Movie Ttitle. I have another condition in the same variable that looks for:
Code:
SubString(ListItem.Path,blu-ray)
And it works just fine. Am I doing something wrong?