Kodi Community Forum
Extra REGEX for TV Show Episode matching - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Tips, tricks, and step by step guides (https://forum.kodi.tv/forumdisplay.php?fid=110)
+--- 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


- xexe - 2009-11-11

Version 1.1

See file for some more details of whats changed. In essence this is a cleanup release.

In the interim I am now using pastebin for uploading this config file as it allows for a permanent home and direct download of the file (which is easier for new users). Eventually I may have a direct download permanent home, who knows


See it here: http://pastebin.com/f62eee83b


I am also looking for feedback about how this is working for you.


- xexe - 2009-11-16

Version 1.2

See file for some more details of whats changed. Small change to follow new config options.

See it here: http://pastebin.com/f6edebc7a


Remember I am also looking for feedback. Without it I cannot know if this is working for you or if anyone is using it. Eventually i will lose interest otherwise Smile


- biggles - 2009-11-17

xexe Wrote:Version 1.1

See file for some more details of whats changed. In essence this is a cleanup release.

In the interim I am now using pastebin for uploading this config file as it allows for a permanent home and direct download of the file (which is easier for new users). Eventually I may have a direct download permanent home, who knows


See it here: http://pastebin.com/f62eee83b


I am also looking for feedback about how this is working for you.

I recently started using this version (didn't include all you personal preferences, but all the regex). Works like a charm. Maybe some of these should be pushed into the main branch further down the road...

Thanks a lot for writing it up!


- xexe - 2009-11-17

No problems.

Unfortunately these will likely never be included since they have the potential of false positives which XBMC cant include.

Glas to see it works for you and thanks for the feedback


- outleradam - 2009-11-20

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.


- Hjord - 2009-11-23

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

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

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

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

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


- outleradam - 2009-11-23

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

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

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

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

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?