Expressions/Rules requests (4 Viewers)

pgjensen

Portal Pro
May 1, 2008
186
7
How can I search for something and if it's not matched, set <season> to 1 ?

i.e.
Code:
(?:(?<season>blah)|(not found, set <season> to 1))
 

nightclaw

New Member
May 26, 2008
3
0
Home Country
Germany Germany
Hi
i've got a problem importing my series.
my files are stored like this
Babylon 5\Season 1\Babylon 5 - s01e14 - TKO.avi

which should be covered by the default regex (tested with Expresso), but the parsing test is negative on all the series
the string replacements are turned off as none are needed.
adding the series manually works

any ideas?

thanks in advance
Sebastian
 

pgjensen

Portal Pro
May 1, 2008
186
7
Code:
^(?<series>[^\\$]+?)\\.*?(?i:season\s?(?<season>[0-2]?\d).*\\).*(?:e(?<episode>\d\d?)|((?:<[0-2]\d|(?<!\d)\d))x?(?<episode>\d\d))(?!\d)(?:[ .-]?(?:s\k<season>e?(?<episode2>\d{2}(?!\d))|\k<season>x?(?<episode2>\d{2}(?!\d))|(?<episode2>\d\d(?!\d))|E(?<episode2>\d\d))|)[ -.]*(?:[^\\]*?[^\\]*?)\.(?<ext>[^.]*)$


there you go! this takes care of a lot of other filenaming schemes just in case other files are that way.


simpler:

Code:
^(?<series>[^\\$]+?)\\(?i:season\s?(?<season>[0-2]?\d).*\\).*(?:e(?<episode>\d\d?)).*\.(?<ext>[^.]*)$
 

nightclaw

New Member
May 26, 2008
3
0
Home Country
Germany Germany
thank you for the quick answer, but unluckily it doesn't work.
can i get more detailed log output on the regexp parsing than "parsing failed for xy"?
 

pgjensen

Portal Pro
May 1, 2008
186
7
did you try the simpler one?

also, does the ROOT folder specified contain Babylon 5 folder? or is it ROOT\tv or something and causing it to fail?
 

nightclaw

New Member
May 26, 2008
3
0
Home Country
Germany Germany
Yes i tried the simpler one, too

and the first Babylon 5 dir is on F:\ => F:\Babylon 5\Season 5\Babylon 5 - s05e01 - No Compromises.avi is the whole path

from the log file:
26.05.2008 12:09:15 - Parsing failed for Babylon 5\Season 5\Babylon 5 - s05e01 - No Compromises.avi
26.05.2008 12:09:15 - Parsing failed for Babylon 5\Season 5\Babylon 5 - s05e02 - The Very Long Night of Londo Mollari.avi

update:
i installed MP on my main workstation and tested the parsing and it completed nicely. i'm doing a re-install of MP on the other machine and hope that this will fix the issue
 

rickyman

Portal Pro
February 5, 2008
210
1
i need some help on some expression.

Doctor Who - 2x01 - New Earth.avi

Doctor.Who.2005.S03E01.Smith.and.Jones.DVDRip.XviD-FUtV.avi
 

z3us

Portal Pro
December 4, 2007
1,047
123
45
Home Country
Spain Spain
Hi.
Im using this expression:

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

It reconizes
Heroes 1x01.avi

but not:
Heroes 1x1.avi

How can I fix it?
TY
 

z3us

Portal Pro
December 4, 2007
1,047
123
45
Home Country
Spain Spain
Dont work
It dont recognize:
Perdidos 2x9 -dual-.avi

All my episodes are in this format:

Serie SeasonxEpisode anything or nothing.ext
Episode number can have 1 or 2 digits
 

Users who are viewing this thread

Top Bottom