Expressions/Rules requests (5 Viewers)

Bluedevil266

Portal Member
February 1, 2009
7
0
Tryed to change some of the numbers but i just don´t understand the Code of the Expression yet so it didn´t work out. i am sure there is just a number missing or something it´s only using 2 digits yes
 

pgjensen

Portal Pro
May 1, 2008
186
7
here you go :)

Code:
^(?<series>[^\\$]+)\\[^\\$]*?(?:s(?<season>[0-1]?\d)ep?(?<episode>\d\d\d?)|(?<season>(?:[0-1]\d|(?<!\d)\d))x?(?<episode>\d\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))|)[ -.]*(?<title>(?!.*sample)[^\\]*?[^\\]*?)\.(?<ext>[^.]*)$
 

Bluedevil266

Portal Member
February 1, 2009
7
0
thx but now everything failed to parse lol :( incl. One Piece tryed adding manual that \d too but same thing adding that will fail all episodes to parse

Edit:Nvm One Piece now parsed fine but still in Season 1 ep. 09 but every other movie failed
 

Bluedevil266

Portal Member
February 1, 2009
7
0
Oh yeah that worked out now but still on Season 1 Ep. 09

Unbenannt-1.jpg
 

Bluedevil266

Portal Member
February 1, 2009
7
0
Amazing this worked flawless :D

here the code that worked out:

^(?<series>[^\\$]+)\\[^\\$]*?(?:s(?<season>[0-1]?\d)ep?(?<episode>\d{1,3})|(?<season>(?:[0-1]\d|(?<!\d)\d))x?(?<episode>\d{1,3}))(?!\d)(?:[ .-]?(?:s\k<season>e?(?<episode2>\d{2}(?!\d))|\k<season>x?(?<episode2>\d{2}(?!\d))|(?<episode2>\d{1,3}(?!\d))|E(?<episode2>\d{1,3}))|)[ -.]*(?<title>(?!.*sample)[^\\]*?[^\\]*?)\.(?<ext>[^.]*)$

not quiet sure if i edited it right but seems to work now just changed all \d\d to \{1,3}
 

chumblespuzz

MP Donator
  • Premium Supporter
  • April 18, 2009
    36
    0
    In Hell (I'm Married!)
    Home Country
    United States of America United States of America
    Can someone help me out here.

    My file structure is like this

    series name\0000 - episode title.avi

    the first 2 zeros are the season and the second 2 are the episode number.

    so like this

    Simpsons, The\0901 - The City of New York vs Homer Simpson.avi

    Thanks!!
     

    pgjensen

    Portal Pro
    May 1, 2008
    186
    7
    Can someone help me out here.

    My file structure is like this

    series name\0000 - episode title.avi

    the first 2 zeros are the season and the second 2 are the episode number.

    so like this

    Simpsons, The\0901 - The City of New York vs Homer Simpson.avi

    Thanks!!

    just did this by hand and haven't checked it, but should work fine for you.

    Code:
    ^(?<series>.*[^\\])\\(?<season>\d{2})(?<episode>\d{2})\s\-\s(?<title>.*)\.(?<ext>\w{2,4})$
     

    chumblespuzz

    MP Donator
  • Premium Supporter
  • April 18, 2009
    36
    0
    In Hell (I'm Married!)
    Home Country
    United States of America United States of America
    Can someone help me out here.

    My file structure is like this

    series name\0000 - episode title.avi

    the first 2 zeros are the season and the second 2 are the episode number.

    so like this

    Simpsons, The\0901 - The City of New York vs Homer Simpson.avi

    Thanks!!

    just did this by hand and haven't checked it, but should work fine for you.

    Code:
    ^(?<series>.*[^\\])\\(?<season>\d{2})(?<episode>\d{2})\s\-\s(?<title>.*)\.(?<ext>\w{2,4})$


    Didn't work for me but I am new to this so I may have done something wrong.
    I am in the MP-TV series config.
    Under the 'import' tab under 'parsing expressions' I added the expression that you posted as 'regexp' type and checked the enabled box.

    Selected directory in 'import paths' and parsed.

    Am I doing this correctly?
     

    Users who are viewing this thread

    Top Bottom