PDA

View Full Version : Help on Conditions



aledoux
July 3rd, 2009, 02:58 AM
Hi,

I want to set an image to be visible only if the Path endswith .flv.
How can I do that via condition in main.xml ?

<visible>ListItem.GetPath().endswith(".flv")</visible>

DPK
July 4th, 2009, 07:24 AM
I don't think you can officially run that visible condition. You might have to use python to do what your asking. Basically import the xml feed you're using and then generate the list by looking at the file extension on each file in the fee.

Is there any specific reason why you only want flv's? Boxee can play other video formats.