2010-12-02, 03:12
epoke Wrote:I'm using XBMC for AppleTV and some movie files are in network(smb) share.
My samba server is sometimes offline, so I think file location flag might be helpful.
I replaced VideoMediaFlagsSubtitles to VideoMediaFlagsFileLocation in Includes_MediaFlagsVideo.xml...
Code:<include name="VideoMediaFlagsFileLocation">
<posx>408</posx>
<posy>0</posy>
<width>64</width>
<height>48</height>
</include>
Code:<!-- File Location -->
<control type="image">
<include>VideoMediaFlagsFileLocation</include>
<texture>flags/movies/filelocation/network.png</texture>
<visible>substring(ListItem.Path,smb)</visible>
</control>
<control type="image">
<include>VideoMediaFlagsFileLocation</include>
<texture>flags/movies/filelocation/local.png</texture>
<visible>!substring(ListItem.Path,smb) + !stringcompare(ListItem.Label,..)</visible>
</control>
ListItem.Path,smb can be replaced with ListItem.Path,yourservername.
it's certainly a nice idea, though i think a 'file online' / 'file offline' flag would be more useful.
sadly, that's not possible as far as i know.