tvshowmatching
#1
Hey guys,

I'm trying to configure XBMC to scrape my shows from the file names I give them. I've rather picky, and have an odd format for them. My general shows would be "Series/1.01 - Pilot.avi", and I have the regex working successfully for that. I've tried extending it though to work for multi-part files, as explained in the wiki, but I can't get the idea to work.

My multi-part shows are named "Series/1.01x02 - Pilot & Part 2", so I'm using the following regex:
Code:
[\\/]([0-9]+).([0-9]+)x([0-9]+)[^\\/]*
Basically exactly the same as the normal, with "x([0-9]+)" added into it, but this isn't being found.

Can anyone tell me if I'm missing anything, or if I've misunderstood the feature. I'm currently missing my full library showing all episodes of some of my favourite shows because of 2 parters, and would just be nice to see it work.

Cheers
Reply
#2
You've misunderstood, yeah (pretty easy to happen).

The additional regexp is currently hardcoded, and it's run on the portion of the string you specify in match 3.

Thus, for your case you want:
Code:
[\\/]([0-9]+).([0-9]+)([^\\/]*)

The fixed regexp that's run is:
Code:
^[-EeXx]+([0-9]+)
so it'll pick your episodes up just fine.

Cheers,
Jonathan
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply

Logout Mark Read Team Forum Stats Members Help
tvshowmatching0