PDA

View Full Version : Multi-episode regexes


SiD the Turtle
2008-10-26, 21:56
Hi guys, I'm just starting out with XBMC and it seems quite easy to get to grips with, apart from getting it to recognise multi-episode files! I have a basic understanding of regular expressions but I'm not sure how they apply here:

In general my files are named as follows: Series Name - S01E01 - Episode Name. I have a regex to deal with this: S([0-9]+)E([0-9]+)[^\\/]*

I have some files that consist of many episodes and so are named as follows: Series Name - S01E01E02E03E04. How can I get XBMC to pick this up? With the regex for the single episode in the system, it picks up each file as the first episode in the batch.

Thanks in advance.

quebert
2008-10-26, 23:02
Hi guys, I'm just starting out with XBMC and it seems quite easy to get to grips with, apart from getting it to recognise multi-episode files! I have a basic understanding of regular expressions but I'm not sure how they apply here:

In general my files are named as follows: Series Name - S01E01 - Episode Name. I have a regex to deal with this: S([0-9]+)E([0-9]+)[^\\/]*

I have some files that consist of many episodes and so are named as follows: Series Name - S01E01E02E03E04. How can I get XBMC to pick this up? With the regex for the single episode in the system, it picks up each file as the first episode in the batch.

Thanks in advance.


Here is what I did, maybe not the best solution, but it was easy and worked for me. If you don't mind renaming the files look for an application called "Epnamer" on Google. Basically it will scan folders and rename the files to whatever you want. I set up a default where it auto names them "showname.sXXeXX.episode title.avi" I ripped 6 seasons of Sanford & Son and it renamed them all with a few clicks of the mouse. Not sure this is what you're looking for, but it's worth trying :)

sho
2008-10-27, 00:25
Depending on the version you are running, your general example should not require any additional regexps.
Read this in regards to multi eps.
http://xbmc.org/wiki/?title=TV_Shows#Multi-part_Episodes

So perhaps you just need to remove your custom regexp?

SiD the Turtle
2008-10-27, 11:59
Hi guys, thanks for the help. I had read through that wiki page but as it wasn't working I thought I was missing something.

I had added in the regex because it wasn't picking up anything, but it looks like tvdb (or my connection) was just having an off day as I couldn't get any info back on any machine I tried.

Tried again this morning, took out my regex and it picked up everything first time :D

Thanks again for the help, stonking piece of software this, blows Vista Media Centre clear out of the water!