Expressions/Rules requests (2 Viewers)

drunkmonkey0

Portal Pro
April 22, 2007
50
1
Home Country
United Kingdom United Kingdom
Parsing help.

it doesn't recognise:
star_trek_voyager_-_season_6_ep_05_alice.avi

please help

edit: ahh no sweat. just gave up and renamed the files to something it would recognise.
 

Cybertex

Portal Pro
August 9, 2007
200
14
Milano
Home Country
Italy Italy
Hello,
I'm trying to create a regexp to parse file names in this way:

\My Name is Earl\My Name is Earl - 01-001 - La lista di Earl.avi

I'm not used to regexp, so I wasn't able to handle a 2 digit season number, and a 3 digit epidose number. :(

Someone could help?
Thanks
 

Hakon_H

MP Donator
  • Premium Supporter
  • May 27, 2007
    18
    0
    Norway
    Home Country
    Norway Norway
    Is it possible to make the plugin automatically select the correct aired or dvd order.
    somthing like this maby "<series> - <season>x<episode> - <title> - <orderoption>.<ext>"
     

    Johan

    Portal Pro
    April 19, 2006
    443
    11
    48
    Home Country
    Sweden Sweden
    I have episodes with the following naming.
    tpz-eureka101.avi

    I tried to make it simple so I made a string replacer for tpz- and the parser gets series eureka and season 1 (all other series I have I get two (01) digits from) and episode 01. This is fine, I thought. The problem is that when I do an import I get nothing.
    I tried to rename the file. First to tpz-eureka.s01e01.avi and it imports. Then I tried tpz-eureka0101.avi and it imports.
    Isn't the plug-in able to import correctly with one digit season numbering?
    I am not using the latest svn but just want to know if this is a bug or something else!?

    Or can someone provide me with a working regexp for this naming? :)
     

    Telstar

    Portal Pro
    October 18, 2007
    151
    1
    Home Country
    Italy Italy
    ok, i'm lost

    all my shows are like this

    D:\Movies\TV Shows\That 70's Show\Season 1\E01 - That '70s Pilot.avi

    My structure for ripped DVD series is similar to yours:
    G:\My Series\Charmed\Season 01\Episode 01\

    This expression that I tried:

    (?<series>[^\\$]*)\Season (?<season>[0-9]{1,2})\Episode (?<episode>[0-9]{1,2})\VIDEO_TS\VIDEO_TS.IFO

    does not work. And even more select also VTS_01_0.IFO that is shouldnt.

    I dont really understand regex. Please help.
     

    Darre

    Portal Pro
    April 21, 2007
    925
    80
    Home Country
    Norway Norway
    ok, i'm lost

    all my shows are like this

    D:\Movies\TV Shows\That 70's Show\Season 1\E01 - That '70s Pilot.avi

    My structure for ripped DVD series is similar to yours:
    G:\My Series\Charmed\Season 01\Episode 01\

    This expression that I tried:

    (?<series>[^\\$]*)\Season (?<season>[0-9]{1,2})\Episode (?<episode>[0-9]{1,2})\VIDEO_TS\VIDEO_TS.IFO

    does not work. And even more select also VTS_01_0.IFO that is shouldnt.

    I dont really understand regex. Please help.


    Easiest way to fix this is just to enter "S01" first in the filename like this: "S01E01 - That '70s Pilot.avi"
    Or even 101 - epname.avi
     

    Telstar

    Portal Pro
    October 18, 2007
    151
    1
    Home Country
    Italy Italy
    My structure for ripped DVD series is similar to yours:
    G:\My Series\Charmed\Season 01\Episode 01\VIDEO_TS\VIDEO_TS.IFO
    ...
    G:\My Series\Charmed\Season 04\Episode 22\VIDEO_TS\VIDEO_TS.IFO

    This expression that I tried:

    (?<series>[^\\$]*)\Season (?<season>[0-9]{1,2})\Episode (?<episode>[0-9]{1,2})\VIDEO_TS\VIDEO_TS.IFO

    does not work. And even more select also VTS_01_0.IFO that is shouldnt.

    I dont really understand regex. Please help.


    Easiest way to fix this is just to enter "S01" first in the filename like this: "S01E01 - That '70s Pilot.avi"
    Or even 101 - epname.avi[/QUOTE]

    The other guy with avi files can do that. But I cant, because mines are DVDs.

    I need it to get the data from the folders name, not the episode
     

    randell

    Portal Member
    February 27, 2007
    19
    6
    Ft Worth, Texas
    Home Country
    United States of America United States of America
    ok, i'm lost

    all my shows are like this

    D:\Movies\TV Shows\That 70's Show\Season 1\E01 - That '70s Pilot.avi

    My structure for ripped DVD series is similar to yours:
    G:\My Series\Charmed\Season 01\Episode 01\

    This expression that I tried:

    (?<series>[^\\$]*)\Season (?<season>[0-9]{1,2})\Episode (?<episode>[0-9]{1,2})\VIDEO_TS\VIDEO_TS.IFO

    does not work. And even more select also VTS_01_0.IFO that is shouldnt.

    I dont really understand regex. Please help.

    I believe you need to escape the single slashes. I'm at work now and can't test it, but assuming everything else is correct and G:\My Series is the configured path:

    (?<series>[^\\$]*)\\Season (?<season>[0-9]{1,2})\\Episode (?<episode>[0-9]{1,2})\\VIDEO_TS\\VIDEO_TS.IFO

    Also, I'm not sure (still new to this plugin) but it may convert everything to lower before trying to match it against a regular expression. If that is the case, you'll want to change all the text in the expression to be lower case (by default, regular expression matching is case sensitive)
     

    Telstar

    Portal Pro
    October 18, 2007
    151
    1
    Home Country
    Italy Italy
    If it's case sensitive, then how I wrote the expression is correct.
    Going to try it right now.. yes it works!
    TYVVVM! If you need something, just ask, I'm in debt.

    It marks red the IFOs that are not the main one, and that is right.

    Now a minor thing, sometimes series have a double episode. I had it named Episode 01-02. Now to make it work i just renamed "Episode 01", but I think there must be a more elegant way to show that is a double episode.

    I couldnt split it because is a single title in the DVD - not sure how other DVDs are made but in case of charmed season 4 was a single video.
     

    randell

    Portal Member
    February 27, 2007
    19
    6
    Ft Worth, Texas
    Home Country
    United States of America United States of America
    If it's case sensitive, then how I wrote the expression is correct.
    Going to try it right now.. yes it works!
    TYVVVM! If you need something, just ask, I'm in debt.

    It marks red the IFOs that are not the main one, and that is right.

    Now a minor thing, sometimes series have a double episode. I had it named Episode 01-02. Now to make it work i just renamed "Episode 01", but I think there must be a more elegant way to show that is a double episode.

    I couldnt split it because is a single title in the DVD - not sure how other DVDs are made but in case of charmed season 4 was a single video.

    There is a way in the regular expression to have it pick up the 2nd episode. Take a peek at the default expressions and look for <episode2>.

    I'm only a regular expression novice myself, so I doubt this will work since I have no way to test it. (I'm at work).

    Try something like:

    Code:
    (?<series>[^\\$]*)\\Season (?<season>[0-9]{1,2})\\Episode (?<episode>[0-9]{1,2})(?:-(?<episode2>[0-9]{1,2}))?.*\\VIDEO_TS\\VIDEO_TS.IFO

    If it works, it should work for both

    G:\My Series\Charmed\Season 01\Episode 01\VIDEO_TS\VIDEO_TS.IFO
    and
    G:\My Series\Charmed\Season 01\Episode 02-03\VIDEO_TS\VIDEO_TS.IFO
     

    Users who are viewing this thread

    Top Bottom