Extra REGEX for TV Show Episode matching - Printable Version
+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: Kodi General Help and Support (/forumdisplay.php?fid=111)
+--- Thread: Extra REGEX for TV Show Episode matching (/showthread.php?tid=51614)
- _Shorty - 2010-01-07 13:31
No more word on matching BeyondTV recordings?
- xexe - 2010-01-16 12:20
_Shorty Wrote:No more word on matching BeyondTV recordings?
Not knowing anything about it probably not
If you are running a recent SVN then this REGEX will NOT WORK. This is because recent SVN releases are case sensitive. 1.8 will be released soon which will tackle this. If you need a quick fix surround all your regex with ?(i)
- _Shorty - 2010-01-16 15:04
Hmm, you were talking about it earlier in this thread, end of page 2, start of page 3. But I don't believe anything ever came of it.
xexe Wrote:I am not sure how stacking works in relation to date regex extraction since i dont use date in any of my collection. Will need to ponder this.
outleradam Wrote:xexe: is it possible to use regex to identify something like this:
- xexe - 2010-01-18 14:16
See Opening Posts for details.
Tread lightly. Feedback requested.
- tofen - 2010-01-24 19:14
I'm kinda new here, but I think I've found a small issue with REGEX.
It doesn't detect "two-part" TOPAZ episodes, it just adds it as the first of the two instead.
I have one with folder name:
"tpz-burnnotice11112.r00" or "tpz-burnnotice11112.avi"
And I also want to take the opportunity to thank you for the good work with .
- xexe - 2010-01-24 22:08
Let me ponder that one. TPZ naming sucks:
11112 = s1e1112, s11e112, s1e1-112, s11e1-12, s1e11-12,
obviously only one is right but the trick is getting so its right all the time
The 4400 is a prime example using their naming scheme this would be:
The rar'd folder name actually make way more sense but I dont do rar.
- tofen - 2010-01-25 12:53
xexe Wrote:Let me ponder that one. TPZ naming sucks:
Could it be possible to do something like the option there is for movies, and use folder name instead of file name?
Like if there's more than four numbers in the filename (isn't that many shows that are more than 100 episodes or seasons, and with the obvious exceptions of 4400, 24 etc.) it will check the folder name instead.
It still wouldn't catch two-part episodes where the episode numbers is in single digits though, but better than nothing.
By the way, how do you see the difference between S1E12 and S11E2?
- gipper - 2010-04-14 07:19
I'm not following this DVD folder structure bit.
I have several TV show boxed sets.
I copied out EACH EPISODE into a separate VIDEO_TS folder.
I used the advanced settings xml code found in the wiki for DVD folder structure.
My structure is thus:
TV SHOWS\American Dreams\AmericanDreams.s01.e01\VIDEO_TS.IFO
TV SHOWS\American Dreams\AmericanDreams.s01.e02\VIDEO_TS.IFO
TV SHOWS\American Dreams\AmericanDreams.s01.e03\VIDEO_TS.IFO
Thus, I have a single episode per folder, but I can't get it to pick up on any of the episodes. It reads that I have American Dreams episodes, but then it doesn't find any of the individual episodes.
Any help would be appreciated. I can't quite get the syntax down on these regexps.
EDIT: I tried renaming to AmericanDreams.s1.e1 because I saw that the zeros had caused some problems, but that didn't help.
- Handa - 2010-06-06 17:18
This pretty much saved my day from extracting about 150 episodes and re-naming them. Thank you.
- CrimsonIdol8 - 2010-06-15 20:00
Edit: Nevermind, it works fine now. Just messed up the advancedsettings file.
Should these REGEXs work for a media catalogue with the below path?
Drive:\Video\Television\Show Name\Season #\## - Episode Name.mkv
Because it doesn't seem to for me.
If it is supposed to, I'll provide a debug. If it isn't, help me please!
- Flomaster - 2010-06-16 05:30
I got set up with SIckbeard it renamed my files and added NFO for each episode and some sort of image file.
WTF would be making my file look like this ?
I can't even get it working properly
here is my advancedsettings.xml file
here is how my file structure is:
when I navigate to "Videos" I can see my tv shows I click it and there is dexter folder I can click into season1 and see all my episodes, but when I navigate to "Tv Shows" its all FUBAR
EDIT: I DO NOT have a NFO file at all is that why i am all FUBAR?
EDIT:I have since loaded up Sickbeard and it has made NFO files for me, but I still have a fugged up tv show system FML....
- Handa - 2010-06-16 07:37
What happens when you refresh the tv-show, does everything look normal until it's downloaded?
- Biznitch - 2010-06-21 09:31
I was hoping someone could help me with my custom naming scheme that my friends and I unified a few years back.
Currently XBMC identifies a lot of my TV series correctly however it does not identify the episodes.
Our folder structure is as follows:
E:\TV_SHOWS_1\Amazing Race\Season 16\
Our episode naming scheme is as follows:
(for HD content)
Archer 1.01 - Mole Hunt [720p].mkv
Better Off Ted 2.01 - Love Blurts [720p].mkv
(for SD content)
Hells Kitchen (US) 7.01 - 16 Chefs Compete.avi
The Amazing Race 16.01 - Nanna Is Kickin Your Butt.avi
I have tried playing around with my own RegEx but with no success.
If anyone could point me in the right direction I would really appreciate it.
- xexe - 2010-06-24 10:11
Its not the best naming convention ever since you will likely get false positives since X.XX has no unique info to tell its season and ep
i.e. 7.01 could be many parts of a name but s07e01 is very ulikely to be anything other than season and ep
Also you seem to have decided to use 2 numbers for ep but not for season. Not the best.
<regexp>.*? (\d\d?)\.(\d\d?) - </regexp>
this will not handle multipart episodes since you never included an example of how you handle it
- Biznitch - 2010-06-27 16:09
xexe Wrote:Its not the best naming convention ever since you will likely get false positives since X.XX has no unique info to tell its season and ep
Cheers mate. Your regexp definitely worked on most of my tv shows however as you correctly pointed out I did run into some issues with multi-part episodes and due to not having double digits for season number. Also where episode titles in my file naming included numbers, this also caused some problems.
Based off this I have decided to slowly update my tv show naming scheme to follow S01E01 etc.
Thanks again for your help, I greatly appreciate it.