Searching for rule expert
#1
Hi all,

I take ISO Images from all my DVDs (marked with .dvd.iso) und BDs (marked with .bluray.iso).

Now I will start DVDs witch Player1 and BDs Player2.

<rules action="prepend">
<rule filetypes="iso" filename="*.dvd.iso" player="Player1"/>
<rule filetypes="iso" filename="*.bluray.iso" player="Player2"/>
</rules>

or

<rules action="prepend">
<rule filetypes="iso" filename="*.dvd.iso" player="Player1">
<rule filetypes="iso" filename="*.bluray.iso" player="Player2"/>
</rule>
</rules>


But it doesn't work. XBMC started always DVDs and BDs with the first rule. It doesn't matter, which of them is at the first position.

Can anyone help me or is there an other solution to reach my goal?

Thanks

gecko
Reply
#2
As I recall, the filename is a regular expression not the sort of wildcard you're used to in Windows. If you look at the xbmc.log I would guess it will show a regular expression error. Try:

<rules action="prepend">
<rule filetypes="iso" filename=".*.dvd.iso" player="Player1"/>
<rule filetypes="iso" filename=".*.bluray.iso" player="Player2"/>
</rules>

Note that I've put a "." in front of the "*". In regular expressions "." means match any character and "*" means zero or more repetitions of the preceding character, so ".*" means match any zero or more characters. Strictly speaking you need to escape a "." when you really mean "." i.e. =".*\.dvd\.iso" but in practice it's unlikely to matter.

JR
Reply
#3
Thanks a lot.

That's it. And sorry, I'm a Windows-child :-)

gecko
Reply

Logout Mark Read Team Forum Stats Members Help
Searching for rule expert0