Regular Expressions - Printable Version
+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: XBMC General Help and Support (/forumdisplay.php?fid=111)
+--- Thread: Regular Expressions (/showthread.php?tid=25349)
- sho - 2008-08-27 16:23
- matthuisman - 2008-08-28 00:09
Ok, my TV shows all add fine APART from:
Episode 1 of Trailer Park Boys Season 1
Epidode 1 or Trailer Park Boys Season 2
But, episode 1 of seasons 3 and 4 work fine.
See my previouse posts for my regex and file structure.
Only TPB does this.
Maybe an issue with http://www.thetvdb.com (scraper i use is this)
- kraqh3d - 2008-08-28 02:30
debug log. and make sure you add a dummy file so that you override the content hash.
- matthuisman - 2008-08-28 02:42
kraqh3d Wrote:debug log. and make sure you add a dummy file so that you override the content hash.
I will just copy my db's and then delete them.
Then just add in Trailer Park Boys FRESH.
I will set the debug log level to 3.
And post the log when I get home from work.
I did not know that XBMC outputed to the log when loading the library!
- kraqh3d - 2008-08-28 02:54
you dont need loglevel 3. loglevel 1 is plenty. and yes, xbmc produces a ton of debugging output because otherwise it would be impossible to help users
** edit **
i'm making that change for the 1x01 default regexp so that it'll match as the start of a filename, right now before i forget!
** edit **
done... its now in svn. (i didnt make the change for "111" to match as the beginning of a filename because of jmarshalls observation that it could screw up things like "4400.s01e01.avi". technically it wouldn't as the s01e01 regexp is evaluated first, but i didnt want to take the chance of some other accidental matches.)
- matthuisman - 2008-08-28 05:08
Ok, can someone please just post, the BEST MOST ACCURATE FULL PROOF REGEX and a good example of file structure so I can change to it :-D
Or, even a good example of the new Current default regex.
- jmarshall - 2008-08-28 05:13
If you use:
1x02foo.avi you won't have a problem with current (as in what kraqh3d just committed)
Alternatively, s01e01foo.avi will be fine as well.
Basically, anything that has a simple, easy to differentiate season and episode number is fine to use.
- matthuisman - 2008-08-28 09:34
ok, i take it you can also have:
1x02 - episode name.avi
- jmarshall - 2008-08-28 09:49
indeed - we do not care what comes after the season + episode identifier in this case.
- matthuisman - 2008-08-28 10:18
I found my problem and a possible bug in xbmc at the same time
The two ep's that wouldnt add:
Trailer Park Boys
Season 1 - Episode 1
NAME: Season 1/01 - Take Your Little Gun and Get Out of My Trailer Park.avi
Season 2 - Episode 1
NAME: Season 2/01 - What in the Fuck Happened to Our Trailer Park.avi
I renamed my avi's just to : 01.avi for both seasons and they add in fine..
hmmm, so something in the name of my .avi is causing the issues.
So, i looked what is common....
The words "TRAILER PARK"
so, i tried removing each word, if i remove just PARK, still no go.
But as soon as i remove the word TRAILER from my filename, it adds fine.
So, somehow XBMC is not importing an episode with the show name in it...