Expressions/Rules requests (1 Viewer)

griffindodd

Portal Pro
March 28, 2009
72
2
Wow this regex is making my head hurt...

I am struggling getting my Daily Show torrent downloads to be recognized no doubt due to the file name structure that they come with.

Here's my dir and name structure...
/The Daily Show/The.Daily.Show.2009.10.13.Chesley.Sullenberger.PDT V.XviD-FQM.[VTV].avi

I'd like the episodes to list like this in Media Portal (using the example name above)...

2009 10 13 Chesley Sullenberger

So far I have found this but I don't even know how to read it properly...

(?<series>[^\\\[]*)\\[a-z \.]*(?<season>[0-9]{2})(\.|-)(?<episode>[0-9]{2})(\.|-)[0-9]{2}[a-z -\[\]]*\.(?<ext>[^.]*)

Hope this makes sense to someone as it makes both of my brain cells ache

Alternatively if someone knows a good stable torrent RSS they can PM me that already provides accurately named 'Daily Show' and 'Colbert Report' that work with MyTVSeries default filters that would be even better
 

Midol

Portal Member
October 8, 2009
11
0
G'day guys,

First question: Is there are FAQ detailing how to make these expressions? The help button in the importer bought me here.

Secondly, does anyone know of anything that'll work with this:
\\MICHAELS-HTPC\Storage1\TV Series\Criminal Minds\Season 5\Episode 1 - Nameless Faceless.avi

Since it is on the HTPC it's obviously going to simply be D:\TV Series\Criminal Minds\Season 5\Episode 1 - Nameless Faceless.avi

Some folders are missing the episode name. I am doing some searching now but figured I'd post before searching in case someone else has the same setup and spots this post before I find a solution. Really, really do not want to individually add every episode when I have around 800gb of the stuff. The only reason I clean the names up is for when giving them to friends who aren't tech savy and prefer "basic" stuff.

My progress:
(?<series>[\w .,'!&$]*)\\[\w .,'!&$]*(?<season>[0-9])\\[\w .,'!&$]*(?<episode>([0-9]{2}))

However, it will only take in episodes over number 10 so I tried doing this: (?<episode>([0-9]{1,2}) and still a fail. Any ideas? It also fails if there are both letters and numbers in the series name (aka Stargate SG-1)
 

Kyght Ryder

Portal Member
January 22, 2008
32
1
Home Country
United States of America United States of America
G'day guys,

First question: Is there are FAQ detailing how to make these expressions? The help button in the importer bought me here.

Secondly, does anyone know of anything that'll work with this:
\\MICHAELS-HTPC\Storage1\TV Series\Criminal Minds\Season 5\Episode 1 - Nameless Faceless.avi

Since it is on the HTPC it's obviously going to simply be D:\TV Series\Criminal Minds\Season 5\Episode 1 - Nameless Faceless.avi

Some folders are missing the episode name. I am doing some searching now but figured I'd post before searching in case someone else has the same setup and spots this post before I find a solution. Really, really do not want to individually add every episode when I have around 800gb of the stuff. The only reason I clean the names up is for when giving them to friends who aren't tech savy and prefer "basic" stuff.

My progress:
(?<series>[\w .,'!&$]*)\\[\w .,'!&$]*(?<season>[0-9])\\[\w .,'!&$]*(?<episode>([0-9]{2}))

However, it will only take in episodes over number 10 so I tried doing this: (?<episode>([0-9]{1,2}) and still a fail. Any ideas? It also fails if there are both letters and numbers in the series name (aka Stargate SG-1)
Midol. The easiest way I can tell you with out messing with Rule expressions is to rename your tv series files. If you have the name of the series first, season, episode it works 99% of the time (ex Criminal Minds S05E01 or Criminal.Minds.S05E01) If all your series are named in this manner you or your friends will have no problem with importing. The only problem I am having is with episodes over 100. Use Renamer. That program will save you time. you can rename 100 of files in seconds. All of your Stargate files should be renamed (ex Stargate.SG-1.S1E1.) Hope this helps.
 

Midol

Portal Member
October 8, 2009
11
0
I was worried that might be the case.

I give ReNamer a go later on in the week (unfortunately work beckons for the next few days). My friends don't have HTPCs they just watch directly from their PCs but if leaving the file names intact makes it easier for me then they'll get used to it.
 

Hudzy

Portal Member
July 5, 2009
8
0
Home Country
United Kingdom United Kingdom
Hi there.

My folder structure looks like this:

\Heroes\Season 1\101 Genesis.ext

I'm using the following expression to parse that:

(?<series>[\w .,'!&$]*)\\[\w\s0-9]*\\(?<season>[0-9]{1,2})(?<episode>[0-9]{2}).{1}(?<title>[\w .,'!&$]*)\.

How would I go about adding double episode functionality to that? I'd prefer to keep my current naming convention; maybe have it look like this:

\Series\Season\101-02 Episode.ext

or:

\Series\Season\101 & 102 Episode.ext
 

CypherNEUK

Portal Member
April 9, 2008
11
2
41
Home Country
United Kingdom United Kingdom
(?<series>[\w .,'!&$]*)\\[\w\s0-9]*\\(?<season>[0-9]{1,2})(?<episode>[0-9]{2})(?(?=[-])-(?<episode2>[0-9]{2})).{1}(?<title>[\w .,'!&$]*)\.

This should work for \Series\Season\101-02 Episode.ext naming convention.

The part I have added is in bold.

Hope this helps.
 

seaney

Portal Member
November 21, 2007
9
0
Home Country
Similar to the previous one, my folder structure is:

\<Series>\Season <season>\Episode <episode>.<ext>
or
\<Series>\Season <season>\Episode <episode> - <title>.<ext>

how would i go about setting up an expression for double episodes?
eg/

\<Series>\Season <season>\Episode <episode> & <episode>.<ext>

Thanks in advance
 

CypherNEUK

Portal Member
April 9, 2008
11
2
41
Home Country
United Kingdom United Kingdom
(?<series>[^\\]*)\\Season (?<season>\d{1,2})\\Episode (?<episode>\d{1,2})(?(?=\-)\-(?<episode2>\d{1,2})|(?(?=[ \- ]) \- (?<title>[^\.]*)))(?(?=[ \- ]) \- (?<title>[^\.]*))\.(?<ext>\w{3,4})

This will match any of below:
\Series\Season 1\Episode 01.ext
\Series\Season 1\Episode 01-02.ext
\Series\Season 1\Episode 01 - Title.ext
\Series\Season 1\Episode 01-02 - Title.ext
 

seaney

Portal Member
November 21, 2007
9
0
Home Country
I gave that ago...and i got an odd result.

Stargate Universe\Season 1\Episode 01 - 02.avi parses but with a title of 02, instead of recognising another episode.
ifi do it episode 01-02, it doesnt parse.

Any ideas?
 

Users who are viewing this thread

Top Bottom