Rule not correctly applied?
#1
Hi,

I use external Player for bluray ISOs and bluray folders for which I created two batch files. This works pretty good, except the rules-section in playercorefactory.xml.

I want to use the xbmc default player in general, with two exceptions:
a) Files with .bd.iso extension (e.g. Mad Max I.bd.iso)
b) index.bdmv files (only index.bdmv files, not for example for MovieObject.bdmv)

This is my rules-section:
Quote: <rules action="prepend">
<rule video="true" player="dvdplayer">
<rule filetypes="iso" filename="*.bd.iso" player="ISO"/>
<rule filetypes="bdmv" filename="index.bdmv" player="FOLDER"/>
</rule>
</rules>

But the behaviour in xbmc is like that:
a) EVERY iso-file is being played with player=ISO
b) Click on index.bdmv starts the movie in xbmc default player click on MovieObject.bdmv does not have any effect, guess is getting catched by default player as well)

What am I doing wrong here?
Reply
#2
At a quick glance I can see tow problems with the ISO rule:

- filetypes="iso" means match any file ending ".iso". You need to remove the filetypes expression.

- The filename takes a regular expression, and in regular expressions the "match any sequence of characters" wildcard is ".*". A period means match any character and asterisk means 0 or more recurrences of the preceding expression.

So your ISO rule should be:

<rule filename=".*\.bd\.iso" player="ISO"/>

JR
Reply
#3
Hi

you are right with the iso-rule, thats it.
I tried to modify the bdmv rule as well:
Quote:<rule filename="*.bdmv" player="FOLDER"/>
this one catches every bdmv file (like i assumed it to do)

but this line:
Quote:<rule filename="index.bdmv" player="FOLDER"/>
catches no bdmv file at all. Again a problem with regex? I just try to match against a single filename.

Thanx for your support!
Reply
#4
Hmm, experiment shows that:

Code:
<rule filename=".*index.bdmv" player="FOLDER"/>

works. There must be something a bit odd going on with the code that does the pattern matching. Still, this gives you a workaround.

JR
Reply
#5
Thanks a lot, that did it!
Reply

Logout Mark Read Team Forum Stats Members Help
Rule not correctly applied?0