Expressions/Rules requests (2 Viewers)

ltfearme

Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,755
    7,200
    Sydney
    Home Country
    Australia Australia
    natural world\season 2009\episode name - s2009e06.avi

    Try a Simple expression:
    Code:
    <series>\season <season>\<title> - s<season>e<episode>.<ext>

    Note: you may need to disable the simple expressions. I think there is bug where it doesnt continue to evaluate expressions if a match is invalid e.g. an episode id is not numeric. This ends up being the case here if you keep the default expressions and add that one to the end.
     

    Tweaqer

    New Member
    September 9, 2009
    1
    0
    Please help;
    I'm new to this whole regex stuff and I read a lot of the previous posts, but I can't find a way to let it skip indexing my subtitle folders. For example:
    C:\Downloads\TV\Lost\Lost seizoen 1\Lost.S01E01.DVDRip.XviD-WAT\Subs\
    or
    C:\Downloads\TV\Mad Men\Mad.Men.S01.DVDRiP.XviD-SCX\Mad.Men.S01E04.DVDRip.XviD-TOPAZ\Subs\

    Thanks guys and girls :D
     

    zicoz

    MP Donator
  • Premium Supporter
  • September 3, 2006
    896
    63
    Home Country
    Norway Norway
    Since I've got all my episodes named in this style:

    Tv-serier\alf\alf - season 01\alf - S01E01 - Pilot

    I tought I'd just need a simple rule that looked like this:

    <series>\<series> - Season <season>\<series> - S<season>E<episode> - <title>

    But as it turns out this rule does not cover double episodes, how can I fix that? I tried

    <series>\<series> - Season <season>\<series> - S<season>E<episode>(E<episode>) - <title> but that didn't work. It only found the 2nd episode of the double with that setting.
     

    CypherNEUK

    Portal Member
    April 9, 2008
    11
    2
    41
    Home Country
    United Kingdom United Kingdom
    Got Lost In Regex

    All my TV shows have a standard format now and I tried to create a regex to match that.
    I used regex buddy to help me create it and it matches all the groups in that, but it fails in mp-tvseries.
    I am lost as I can not understand why it is not working.

    Folder Structure:
    T:\<Series>\<Season>\<series>.s<season>e<episode>-<episode2>.<title>.<ext>
    e.g. T:\Grey's Anatomy\Season 5\grey's.anatomy.s05e01-02.dream.a.little.dream.of.me.mkv

    EDIT:
    (?:.*\\.*\\)(?<series>\w.*).(?<season>\d{1,3})[e](?<episode>\d{1,3})(?(?=[-])[-](?<episode2>\d{1,3}))[.](?<title>.*)[.](?<ext>\w{2,4}(?! .*\w{2,4}))$
    Got it working now :D


    :D
     

    zicoz

    MP Donator
  • Premium Supporter
  • September 3, 2006
    896
    63
    Home Country
    Norway Norway
    Try creating a Simple expression:
    Code:
    <series> s<season>e<episode> - <title>.<ext>

    What do you do about double episodes with that expresion?

    Edit: Found a solution

    Make a 2nd expression that looks like this:

    <series> - s<season>e<episode>-e<episode2> - <title>

    And place it above the other one in the list

    <series> - s<season>e<episode> - <title>
     

    markos30

    Portal Member
    August 27, 2009
    5
    0
    Home Country
    Cyprus Cyprus
    Yes please i want the same expression

    can someone help me with below?

    Thank you!

    South park \ season 02 \ 201 - terrance & phillip in not without my anus.avi
    south park \ season 02 \ 202 - cartman's mom is still a dirty slut.avi
     

    MacGyver2k

    Portal Pro
    October 29, 2005
    148
    64
    Home Country
    Germany Germany
    i have problems with some parse expressions.

    my file structure looks like this:
    \The Sopranos - 720p\Season 04\S04E01 - For All Debts Public and Private.mkv
    and for some files like this
    \The Joy of Painting\S15E01 - Splendor of Winter.ts

    i was using simple expression parsing until today, but since i have got some "double"-episodes i wanted to show them up as seperate episodes in the list.
    so i made these three parsing rules:

    Code:
    (?<series>[^\\$]*)[\\]Season [0-9]*[\\]S(?<season>[0-9]*)E(?<episode>[0-9]*)&(?<episode2>[0-9]*) - (?<title>(?![^\\]*?sample)[^$]*?)\.(?<ext>[^.]*)
    (?<series>[^\\$]*)[\\]Season [0-9]*[\\]S(?<season>[0-9]*)E(?<episode>[0-9]*) - (?<title>(?![^\\]*?sample)[^$]*?)\.(?<ext>[^.]*)
    (?<series>[^\\$]*)[\\]S(?<season>[0-9]*)E(?<episode>[0-9]*) - (?<title>(?![^\\]*?sample)[^$]*?)\.(?<ext>[^.]*)

    i mostlyworks, but episodes with a "." in the title are messed up ( like "S03E01 - Mr. Ruggerio's Neighborhood.mkv" - the title is "mr." and "Ruggerio's Neighborhood.mkv" is used as <ext>".
    and strangely some episodes show as <episodeindex2> instead of nothing the full file path.

    i am sure that it is possible to reduce my three lines to just one, but since i wasn't able to find any documentation i need some help.
    i wasn't able to fully understand the syntax, is there any quick introduction for regexp so i can try it on my own ?


    :edit:
    okay, is was able to help myself.

    fixed the "." problem with ^ and $and reduced it to just one line.
    Code:
    ^(?<series>[^\\$]*)[\\](Season [0-9]*[\\])?S(?<season>[0-9]*)E(?<episode>[0-9]+)(&(?<episode2>[0-9]+))? - (?<title>(?![^\\]*?sample)[^$]*?)\.(?<ext>[^.]*)$

    but i still got the problem that right after the first double episode ( S01E01E02 ) is parsed all other episodes get an entry in <episodeindex2> with their full file-path. i assume it's an bug, or is there any way i can avoid that ?
    i doesn't seem to cause any problems with the listing of the files.

    thanks
     

    omniaberry2

    Portal Member
    August 13, 2009
    8
    0
    Parsing doesn't work on 100+ episode

    Hello,
    The parsing for The Daily Show S14E123 - Bruce Bueno De Mesquita just doesn't work, if I change to an episode number below 100, than it's ok but once it's above 100, it thinks the season is 1 and the episode is 23 (the episode name is correct in both cases).

    Any ideas, how the file should be renamed? or maybe a new parsing string?

    Thanks
     

    Harblar

    Portal Member
    October 2, 2009
    6
    0
    Home Country
    United States of America United States of America
    Hi all.

    New to MP and the TV series plugin and I'm having a little trouble with the parsing.

    I've just started ripping my DVD's to a VIDEO_TS directory and am using the following expression to import them:

    <series>\Season_<season>\Ep_<episode>\VIDEO_TS\VIDEO_TS.IFO

    It works perfect with one exception. Each folder also contains the file VTS_01_0.IFO. When I do a parsing test it marks these files as red. When I start the import these files are left out so it's not a big problem, but it can be a pain searching through to make sure everything is right before running the import.

    Is there any way to have it ignore that file all-together so it doesn't show up in the parsing test?
     

    Kyght Ryder

    Portal Member
    January 22, 2008
    32
    1
    Home Country
    United States of America United States of America
    I am having same issue as others with the Daily Show and The Colbert Report. I tried Venares parsing rules with no success.https://forum.team-mediaportal.com/my-tvseries-162/expressions-rules-requests-21978/index37.html#post493062

    Anyone with ideas please help. These are two really popular shows. I am surprised no ones has an answer or a link to a thread with the answer. Thanks.



    Hey guys,

    I'm trying to get my anime to parse. I have S:\Anime as my import path and I use the following naming convention:

    S:\Anime\<series>\<series> - <episode> - <title>.<ext>
    For example: S:\Anime\Black Lagoon\Black Lagoon - 02 - Mangrove Heaven.mkv

    I'm wondering: Is there any way to force the season number to "1" for files in the Anime folder? Anime doesn't really use season numbers and I'd rather not rename all my files.

    I'm willing to change the "Anime" directory to "Anime1" if that's the only way to get the 1 parsed as the season number. Either way, a regex for something like this would be appreciated. :)
    Clownboat make sure all of your anime is in the following format and you should have no problems Black Lagoon S01E01. or <series name><S01><E01>Always make sure your series name is first then Season, last Episode. If you use the program Renamer it is great for anime's. Add your rules save the profile and use it hassle free for batches or new files. Hope this helps.


    Can someone help me with:

    \\HOMESERVER\Movies\Series\NAME\NAME Season 1\NAME Season 1 Disc 1\VIDEO_TS
    \\HOMESERVER\Movies\Series\NAME\NAME Season 1\NAME Season 1 Disc 2\VIDEO_TS

    In folder VIDEO_TS:

    VIDEO_TS.IFO
    VTS_01_0.IFO
    VTS_02_0.IFO
    VTS_03_0.IFO

    some .BUP and .VOB files.


    I assume that
    VTS_01_0 = episode 1
    VTS_02_0 = episode 2
    VTS_03_0 = episode 3
    lujo you have to convert your movies to a singe file. Use any DVD to ipod converter to make your episodes in a single file. DVD fab will do the job, its fst and does batch convertions. Xilsoft has a few programs too. When you are converting make sure your file name is (Example Friends S01E02) That is Friends Season 1 Episode 2. you should be good to go.

    I have some tv series that use 4 digit seasons
    This plugin doesn't seem to like that.
    thetdb.com also stores them as 4 digit season codes..
    series like bbc documentaries etc use the year as the season.
    or the natural world series etc also uses the year as the season..

    for example
    natural world\season 2009\episode name - s2009e06.avi

    Can someone please add support for this or fire me an expression that will take care of these, cheers
    Kilack & RivaSA I used this method for F1 or Four digits and it worked fine.

    F1.2009x12.Belgian.GP

    Series.seasonxepisode.tile

    Hope that helps

    hi all!

    i can't figure this one out, probably very easy :p
    One_Tree_Hill_S01_E01.mkv

    thanx!
    cirediew yes your answer is easy. Remove the underscore from between the season and the episode (example) One_Tree_Hill_S01E01.mkv. You should be good now. Import.
     

    Users who are viewing this thread

    Top Bottom