Extra REGEX for TV Show Episode matching

  Thread Rating:
  • 11 Votes - 4.45 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
catastrofuk Offline
Junior Member
Posts: 2
Joined: Jul 2012
Reputation: 0
Post: #251
Thought I would ask here before I go any further with this;

I am in the process of cataloging World Cup games.

I would like to have series folders names as "Group A", "Group B" etc, Semi-Finals, Finals etc instead of the the standard "season 1". An example of an individual file name would be say Group Cx02 Argentina vs Brazil.avi

Is this possible with regexp and xbmc? If so where do I begin Big Grin
find quote
GreenGremlim Offline
Junior Member
Posts: 2
Joined: Jul 2012
Reputation: 0
Post: #252
Hello I need a regex for ember media manager to detect some tv shows I have that it doesn't detect. The shows are sorted as follows:
D:\Share I\Séries\24\24 Season 1\24 S01E01 Day 1- 12-00 A.M.-1-00 A.M\24 S01E01 Day 1- 12-00 A.M.-1-00 A.M.avi
D:\Share I\Séries\Alias\Season 1\Alias S01E01 Truth Be Told\Alias S01E01 Truth Be Told.avi
D:\Share I\Séries\V 2009\V 2009 Season 1\V S01E01 Pilot\V S01E01 Pilot.avi
Anyone can help? I don't have a clue on how to do it Sad
find quote
rydraj Offline
Junior Member
Posts: 2
Joined: Jul 2012
Reputation: 0
Post: #253
Could anyone help me with a Regex for the following structure;

<Drive>\<Television>\<Person of Interest (2011) [HD_TV]>\<Season 1 (2011-2012)>\<01 Pilot.mkv>

-- AND --

<Drive>\<Television>\<The Simpsons (1989)>\<Season 13 (2001-2002) [HD_Blu-ray]>\<01 Treehouse of Horror XII.mkv>
find quote
shin-go Offline
Junior Member
Posts: 3
Joined: Aug 2012
Reputation: 0
Post: #254
I have quite a bit of media and everything is structured the same way, but I'm pretty poor with regular expressions.

My directory structure is:

<directory>/<series name> - <episode number>.<extension>

The video extensions tend to be avi, mpg, mpeg, mp4, mkv, wmv, flv, and ogm.

Note that for separate seasons I make a different directory rather than mix since there are odd cases where subsequent seasons of the same namesake show have very different names (it's not a matter of S1, S2, ad infinitum).

Any help with the regex would be greatly appreciated
find quote
xbmcuser123 Offline
Junior Member
Posts: 22
Joined: Sep 2012
Reputation: 0
Post: #255
Hi,

This may have already been posted in this long thread but I need some help on the naming convention.
I have several HDDs each containing a TV Show folder : TV 1, TV 2, etc etc
I have created a folder named TV and created inside seveveral junctions.
So the file structure is :
TV/TV 1/ TV Show 1/ Season 1/TV SHow 1.S01E01.avi
...
TV/TV 1/ TV Show 1/ Season 2/TV SHow 1.S01E01.avi
...
TV/TV 2/ TV Show 1/ Season 1/TV SHow 1.S01E01.avi
....

Whenever I add a new hard drive I create a new TV x folder and the associated junction link.

I would like to add TV as the source folder for XBMC library instead of adding each TV x folder.
Which naming convention shall I use for that ?

Thank you for your help
find quote
Haudrauf Offline
Junior Member
Posts: 43
Joined: Apr 2011
Reputation: 0
Location: Germany
Post: #256
(2012-09-02 11:16)xbmcuser123 Wrote:  Hi,

This may have already been posted in this long thread but I need some help on the naming convention.
I have several HDDs each containing a TV Show folder : TV 1, TV 2, etc etc
I have created a folder named TV and created inside seveveral junctions.
So the file structure is :
TV/TV 1/ TV Show 1/ Season 1/TV SHow 1.S01E01.avi
...
TV/TV 1/ TV Show 1/ Season 2/TV SHow 1.S01E01.avi
...
TV/TV 2/ TV Show 1/ Season 1/TV SHow 1.S01E01.avi
....

Whenever I add a new hard drive I create a new TV x folder and the associated junction link.

I would like to add TV as the source folder for XBMC library instead of adding each TV x folder.
Which naming convention shall I use for that ?

Thank you for your help

Did you really made this? Then TV Show 1 Season 1 would be doubled (on TV1 and TV2) and the episodes of TV Show 1 Season 2 are improperly named as *S01E?? instead of *S02E??
This would be a hard work for a regex...
find quote
xbmcuser123 Offline
Junior Member
Posts: 22
Joined: Sep 2012
Reputation: 0
Post: #257
Thanks for your reply, sorry I did not explain properly, no series are doubled. They are all under second level directory, not on the root :

TV/TV 1/ TV Show 1/ Season 1/TV SHow 1.S01E01.avi
...
TV/TV 1/ TV Show 1/ Season 2/TV SHow 1.S01E01.avi
...
TV/TV 1/ TV Show 2/ Season 1/TV SHow 2.S01E01.avi
...
TV/TV 1/ TV Show 2/ Season 2/TV SHow 2.S01E01.avi
...
TV/TV 2/ TV Show 3/ Season 1/TV SHow 3.S01E01.avi
...
TV/TV 2/ TV Show 3/ Season 2/TV SHow 3.S01E01.avi
...

Series are not under root directory TV, but under subdirectories TV 1, TV 2, ..., TV n

TV
!--------- TV 1
!-------------- Series 1
!-------------- Series 2
!-------------- Series 3
!-------------- etc
!--------- TV 2
!-------------- Series n
!-------------- Series n+1
!-------------- Series n+2
!-------------- etc
....
!--------- TV n
!-------------- Series x
!-------------- Series x+1
!-------------- Series x+2
!-------------- etc

I would like to use default settings in XBMC (my series are properly named for defaults) to be applied for TV 1, TV 2, etc levels by skipping the root directory TV.


Hope this is clearer that way.

Thanks for your help in advance.
(This post was last modified: 2012-09-05 19:33 by xbmcuser123.)
find quote
Haudrauf Offline
Junior Member
Posts: 43
Joined: Apr 2011
Reputation: 0
Location: Germany
Post: #258
(2012-09-05 19:31)xbmcuser123 Wrote:  TV/TV 1/ TV Show 1/ Season 1/TV SHow 1.S01E01.avi
...
TV/TV 1/ TV Show 1/ Season 2/TV SHow 1.S01E01.avi
...
TV/TV 1/ TV Show 2/ Season 1/TV SHow 2.S01E01.avi
...
TV/TV 1/ TV Show 2/ Season 2/TV SHow 2.S01E01.avi
...
TV/TV 2/ TV Show 3/ Season 1/TV SHow 3.S01E01.avi
...
TV/TV 2/ TV Show 3/ Season 2/TV SHow 3.S01E01.avi

Hi,
there is still a naming issue with the seasons:
your seasons all beginn with S01 no matter what season they are.
The naming scheme is NAME_OF_SHOW_S(eason)xxE(pisode)yy.EXT as you can find here
Maybe this could be the problem?
Please check again your naming.

About adding to the sources - I am using something similar to your structure:
video/Series/FSK00/TV_Show_A/(files and subfolders mixed)
video/Series/FSK00/TV_Show_B/(files and subfolders mixed)
video/Series/FSK06/TV_Show_C/(files and subfolders mixed)
and so on.

FSKnn is the German system for the suitable age (FSK00, FSK06, FSK12, FSK16 and FSK18).

The only thing I have to look at is the naming convention of the files inside my TV_Show_X folder and the name of the TV_Show_X folder itself, xbmc is looking deeply in the file structure under the TV_Show_X folder.

But I have to add each FSKnn-folder to the sources.
You can add multiple media location to one source - have a look here

So a source could contain video/Series/FSK00, video/Series/FSK06 and video/Series/FSK12 and another source could contain video/Series/FSK16 and video/Series/FSK18
(This post was last modified: 2012-09-06 11:11 by Haudrauf.)
find quote
xbmcuser123 Offline
Junior Member
Posts: 22
Joined: Sep 2012
Reputation: 0
Post: #259
thanks for your reply.
Apologies for the mistakes again,
my structure is indeed
TV/TV 1/ TV Show 1/ Season 1/TV SHow 1.S01E01.avi
...
TV/TV 1/ TV Show 1/ Season 2/TV SHow 1.S02E01.avi
...
TV/TV 1/ TV Show 2/ Season 1/TV SHow 2.S01E01.avi
...
TV/TV 1/ TV Show 2/ Season 2/TV SHow 2.S02E01.avi
...
TV/TV 2/ TV Show 3/ Season 1/TV SHow 3.S01E01.avi
...
TV/TV 2/ TV Show 3/ Season 2/TV SHow 3.S02E01.avi

I am currently using your method by adding each individual source.
Since I regularly add new sources, I was wondering if there was a way to tell XBMC by proper regex to scan second level directory instead of the root to avoiding adding new sources and make it automatic. That would be easier for maintenance because I have several HTPC using XBMC.

Thanks.
find quote
Haudrauf Offline
Junior Member
Posts: 43
Joined: Apr 2011
Reputation: 0
Location: Germany
Post: #260
If you have several htpc, are you using a mySQL db for them all?
I'm running one with frodo, so the work with sources, thumbs and posters etc. is needed only once for all machines on the network.
find quote
Post Reply