XBMC Community Forum
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: XBMC General Help and Support (/forumdisplay.php?fid=111)
+--- Thread: Extra REGEX for TV Show Episode matching (/showthread.php?tid=51614)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30


- Hjord - 2009-11-23 18:40

Hello
I'm new here and new to use XBMC.
Maybe i did'nt instal it right, cause it did'nt get anything to my library.
My struckture is like this

Series/L/Lost/Season 1/ Episode (1).mkv
Series/L/Langt Fra Las Vegas/ Disk 1.iso

Maybe i'm just not doing it right Confused


- xexe - 2009-11-23 18:50

outleradam Wrote:xexe: is it possible to use regex to identify something like this:
/showname-(episode title)-YYYY-MM-DD-X.mpg

The YYYY-MM-DD = recording date, the X is to identify parts of the same recording. This is the default for BeyondTV.

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.

Hjord Wrote:Hello
I'm new here and new to use XBMC.
Maybe i did'nt instal it right, cause it did'nt get anything to my library.
My struckture is like this

Series/L/Lost/Season 1/ Episode (1).mkv
Series/L/Langt Fra Las Vegas/ Disk 1.iso

Maybe i'm just not doing it right Confused

Please supply some more examples as the ones you suply only hint at your naming scheme


- Hjord - 2009-11-23 18:55

I only have those two.

Just like
Series/P/Prison Break/Season 3/Episode (10).avi
Series/H/Heroes/Season 1/Episode (3).mkv


- xexe - 2009-11-23 19:23

Hjord Wrote:I only have those two.

Just like
Series/P/Prison Break/Season 3/Episode (10).avi
Series/H/Heroes/Season 1/Episode (3).mkv

Use this regex

[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\].*? \((\d{1,2})\)(?!.*])

But I will not add it to this set since its almost the worst naming format I have ever seen and very unliekly to help anyone bar you.

Good luck


- jpf55 - 2009-11-23 19:39

this should help:
http://wiki.xbmc.org/?title=TV_Shows_(Video_Library)#TV_show_filenaming_conventions


- outleradam - 2009-11-23 20:36

Just a note, the date is not original air date, it is recording date. BTV is a DVR back/front end for windows. It uses the same guide data as mythtv. It keeps a database with original air date and all other data which myth pulls from zap2it. Maybe this should be in another thread, I'm burning this issue at 4 ends here. Open source renaming app BTVRename using tvrage which I am admin on sourceforge, on the btv forums, btv APIs, and XBMC scraper recognition. There has to be a way to integrate btv library into xbmc.


- Hjord - 2009-11-23 21:19

xexe Wrote:Use this regex

[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\].*? \((\d{1,2})\)(?!.*])

But I will not add it to this set since its almost the worst naming format I have ever seen and very unliekly to help anyone bar you.

Good luck


In the start i did'nt have any software to put my movies in.
I just found them in the maps. And then it is the easiest.

But thank you reallymuch.


- Hjord - 2009-11-23 21:55

Maybe i'm just an dumbass.
But i can't it to work Confused
When i'm try to add TV Shows f.x. all them under H, i just get the show name, nothing about seasons or episodes.


- xexe - 2009-11-23 22:22

Hjord Wrote:Maybe i'm just an dumbass.
But i can't it to work Confused
When i'm try to add TV Shows f.x. all them under H, i just get the show name, nothing about seasons or episodes.

See my OP of this thread if you really want help


- Hjord - 2009-11-23 22:45

xexe Wrote:See my OP of this thread if you really want help
I have read it a couple of times.
If i just change the episode name to fx prison.break.310.avi and then have a sourge for each letter. Would it work then?