Expressions/Rules requests (4 Viewers)

pgjensen

Portal Pro
May 1, 2008
186
7
here's the one i use as my first one - will work for you.

Code:
^(?<series>[^\\$]+?)\\(?:[^\\$]+?)?(?:[Ss](?i:eason\s?)?(?<season>\d\d?).*\\)(?:EXTRAS\\){0}(?:e7)?.*?(?:(?:[Ss]\d{1,2}[Ee]p?(?<episode>\d{1,3}))|\d{1,2}[Xx](?<episode>\d{1,3})).*\.(?<ext>\w{3,4})$
 

johan_80

Portal Pro
April 27, 2009
65
0
Thanks alot!!!

It is almost perfect. Only problem is that it can't parse correctly when there are numbers in the "EpisodeName" part of the filename.

So it fails on files like:

\NameofSerie\Season 1\S01E01 - Flight 517.mkv

Can the expression be modified to handle this?

PS
First time since switching to MediaPortal I
m kind of missing Windows 7 Media Center. The myTV plugin NEVER failed me on a single episode (2TB)
 

duke23315

New Member
November 9, 2007
1
0
Greeting Everyone,
I'm currently setting up this addon for all of my Tv, coming across a few problems with importing and parsing them and just looking for a bit of help.

I currently have all my Tv sorted in this manner

\root\show\season\episodes

as a example i will use this.

"H:\TV\SouthPark\Season 10"

All the files within the "season" folder are formatted like this

Show.Name.s01.e01
Again with a example
"SouthPark.s10.e01.avi"

As you may be able to tell I'm trying to parse all 13 season of south park and it does not find anything. Although i did have it automatically parse all of my Boston legal and house with out me manually importing anything
and they are labeled the same way.

"H:\TV\House\Season 4\House.s04e04.avi"
"H:\TV\Boston Legal\Season 02\Boston.Legal.s02e03.avi"

Just looking for a bit of help with this.
 

pgjensen

Portal Pro
May 1, 2008
186
7
Code:
^(?<series>[^\\$]+?)\\(?:[^\\$]+?)?(?:[Ss](?i:eason\s?)?(?<season>\d\d?).*\\)(?:EXTRAS\\){0}(?:e7)?.*?(?:(?:[Ss]\d{1,2}[\s.]?[Ee]p?(?<episode>\d{1,3}))|\d{1,2}[Xx](?<episode>\d{1,3})).*\.(?<ext>\w{3,4})$

that should fix it. put this at the top as a regexp.
 

Cazz

Portal Pro
May 30, 2008
146
1
Home Country
Sweden Sweden
Hi, I maybe have miss what I'm looking for but the this thread is over 33 pages long :)

I just have one request but I dont get my import to work so I have to add manual and that is alot of work

I have now

TV-serie/Name of the serie/s01_e01_-_title.avi

sometime I just have s1 but I can change that to s01 if that is to much work to do

that is ok if I have to add some manual but I have alot of serie that I need to import.
 

tebba

Portal Pro
November 8, 2007
56
0
Home Country
Norway Norway
Having some trouble i thought you could help me with.

i tried adding the two expressions into tv series. But it doesnt seem to work.

example:
Seriesname.s01e01.720p.bluray.x264-groupname.part01.rar
Seriesname.s01e01.720p.bluray.x264-groupname.part02.rar
Seriesname.s01e01.720p.bluray.x264-groupname.part03.rar

i added:
\\(?<series>.+)\.s(?<season>[0-9]+)e(?<episode>[0-9]+).+?\\.+(??<!part\d\d\d|part\d\d)\.rar|\.part0* 1\.rar)
and:
\\(?<series>.+)\.(?<season>[0-9]+)x(?<episode>[0-9]+).+?\\.+(??<!part\d\d\d|part\d\d)\.rar|\.part0* 1\.rar)

I add them as regexp expressions, but the problem is that it still shows up in the "Import Paths" tab.

Do you know what the problem might be?
 

tebba

Portal Pro
November 8, 2007
56
0
Home Country
Norway Norway
Import Paths <-

Expressions <-

Here are screenshots of both. Find the mistake? :)

I want the part02 -> partXX to not show up in the import paths, or show up as red. while part01 is the original one.
 

pgjensen

Portal Pro
May 1, 2008
186
7
have you tried disabling the rest of the regexp/simple's? it may be picking it up based on the numbers in the rar extensions and yours are failing.

and please use code tags and list the regexp's you've made yourself involving the rar files.


note: you may have to add an expression to not allow any rar's to the rest of the default expressions in case you have regularly named files, too.
 

Users who are viewing this thread

Top Bottom