Expressions/Rules requests (2 Viewers)

RoChess

Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    It somewhat does work, BUT... How the heck can one of these files parse correctly and the other one not. Bryan Cranston doesn't work in MP while Ben Kingsley does. There are also a few other episodes that parse correctly and few that won't that look about the same.

    \The Late Late Show with Craig Ferguson\Craig.Ferguson.2010.05.12.Bryan.Cranston.HDTV.XviD-2HD\craig.ferguson.2010.05.12.bryan.cranston.hdtv.xvid-2hd.r00

    \The Late Late Show with Craig Ferguson\Craig.Ferguson.2010.05.21.Ben.Kingsley.HDTV.XviD-2HD\craig.ferguson.2010.05.21.ben.kingsley.hdtv.xvid-2hd.r00

    Between those 2 there is no reason why one works and the other doesn't unless you are getting false positives from other parsing expressions. Make sure this one I provided for you is ranked first, so that no other expression can interfere. If that still fails, then there might be a previous import from that episode active in the database, causing it to get ignored/skipped. Check the pre-import screen otherwise to see how the parsing expression splits it up. This will be a lot easier in v2.6 which will feature a whole new import system, but till then you will have to dig a little deeper.
     

    Sinbe

    Portal Pro
    December 12, 2007
    70
    0
    Home Country
    Finland Finland
    I disabled all other expressions to test the one you gave me. I also disabled all the string replacements to make sure they weren't causing any problems. To test I used the "pre-import" screen, if by that you mean the "Import paths" window, where you can refresh all the shares and see how they are parsed.

    What's more strange is that you said it should include HDTV XviD in the episode name if the string replacements are disabled, but the episode name is parsed correctly as just "ben kingsley", not "ben kingseley hdtv xvid". Are there hidden string replacements or is there something wrong with my system?
     

    RoChess

    Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    I disabled all other expressions to test the one you gave me. I also disabled all the string replacements to make sure they weren't causing any problems. To test I used the "pre-import" screen, if by that you mean the "Import paths" window, where you can refresh all the shares and see how they are parsed.

    What's more strange is that you said it should include HDTV XviD in the episode name if the string replacements are disabled, but the episode name is parsed correctly as just "ben kingsley", not "ben kingseley hdtv xvid". Are there hidden string replacements or is there something wrong with my system?

    Yes, it's the screen you can refresh before you hit the "Start Import" button, where bad parsed entries show up red.

    I'm on same schedule as my wife, so there isn't a moment anymore where I can use HTPC to test. I'll be setting up VirtualBox with a test installation, but haven't found the time yet to do that. But if you look at the string replacements, you can see that HDTV and such are present as default string replacements and have the 'tag' option enabled even.
     

    Raytestrak

    MP Donator
  • Premium Supporter
  • April 12, 2008
    497
    21
    48
    Honselersdijk
    Home Country
    Netherlands Netherlands
    I have a few MKV's with chapters, where every chapter is an episode. How do I parse one file to be multiple episodes? I've tried thing like Firefly.S01E01E02E03E04 or S01E01-E04, but it always stops at the second episode (So it's either E01 and E02 or E01 and E04 with this example). I've tried manually assigning multiple files to one entry, but this isn't possible.
     

    adelphia

    Portal Pro
    March 29, 2010
    54
    2
    Hayling Island, Hampshire, UK
    Home Country
    United Kingdom United Kingdom
    I have a few MKV's with chapters, where every chapter is an episode. How do I parse one file to be multiple episodes? I've tried thing like Firefly.S01E01E02E03E04 or S01E01-E04, but it always stops at the second episode (So it's either E01 and E02 or E01 and E04 with this example). I've tried manually assigning multiple files to one entry, but this isn't possible.

    It's a limitation of two9 episode parsing or something like that. I have the same with my Doctor Who where a complete series might be 8 or 9 episodes but I only show 2. What I did was to include missing episodes in my list which then brings down everything but you then get too many so it's either too many or not enough, take your pick.
     

    Raytestrak

    MP Donator
  • Premium Supporter
  • April 12, 2008
    497
    21
    48
    Honselersdijk
    Home Country
    Netherlands Netherlands
    It's a limitation of two9 episode parsing or something like that. I have the same with my Doctor Who where a complete series might be 8 or 9 episodes but I only show 2. What I did was to include missing episodes in my list which then brings down everything but you then get too many so it's either too many or not enough, take your pick.

    That's what I tried (I think). I manually assign a file to an episode, but then I can't assign it to another episode. One MKV is 5 episodes.
     

    Scalar

    Portal Member
    February 1, 2009
    18
    2
    It is listed as Top Gear s00 eXXXX

    Ok, first attempt at a new default expression:

    ^.*?\\?(?<series>[^\\$]+?)[ .-]+[\#s]?(?<season>\d+)[ .-]?[ex.](?<episode>\d+)[+-]?(?<episode2>\d+)?[ .-]*(?<title>(?![^\\]*?sample)[^$]*?)\.(?<ext>[^.]*)$

    This should work for the following files:

    • Show.Name.S01E01.avi
    • Show Name - s01e01.avi
    • Show Name - S01E01 - Episode Title.avi
    • Show Name - S01 E01 - Episode Title.avi
    • Show Name - S01.E01 - Episode Title.avi
    • Show Name - S01-E01 - Episode Title.avi
    • Show Name 1x01.avi
    • Show Name #1.01.avi
    • Show Name #1.01 - Episode Title.avi
    • Show Name - S01E01-02 - Two Part Episode.avi
    • Show Name - S01E01+02 - Two Part Episode.avi
    • Show Name - S01E100 - Three Digit Episode.avi

    There are a lot more combinations, but you get the general idea.

    I need feedback from tester, or these type of modifications will never make it into the plugin by default.

    PS: Be sure to put this expression at the first position to prevent interference from the other expressions. Preferably disable all the other expressions and let me know which filenames do not work, so I can improve it. This expression is not meant to work for the "\Series Name\Season 1\01 - Episode Title.avi" scheme, but those will be supported via a seperate one.

    The 4-digit episodes from TopGear will work as well, provided there is a 'S00E0000' or '00x0000' or 'S00 E0000' or 'S00.E0000' or 'S00-E0000' syntax present. Without the seperator it won't work. That doesn't mean it is not possible to support 00222 for S00E222, but that would require hardcoded exceptions which run a high risk of false positives.

    Smash: you would do better adding a String Replacement rule that turns "Top Gear - 00" into "Top Gear - S00E" (with 'before' enabled), so that the above expression works without having to rename a lot of files.

    So far it works great!

    But there is one more problem. This rule turns

    "Der Adler - Die Spur des Verbrechens - s01e01.avi" to
    "Der Adler Die Spur des Verbrechens s01e01.avi".

    But the tvdb need the "-" in the first part of the name ("Der Adler - Die Spur des Verbrechens") because without ("Der Adler Die Spur des Verbrechens") it cannot be found. What can I do?
     

    RoChess

    Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    But there is one more problem. This rule turns

    "Der Adler - Die Spur des Verbrechens - s01e01.avi" to
    "Der Adler Die Spur des Verbrechens s01e01.avi".

    The expression doesn't remove the first '-', that seems to be done by MP-TVSeries plugin after parsing. So you need to use 'String Replacements' to make things work then for that perticular exception.
     

    mystikal

    New Member
    February 13, 2008
    3
    0
    Home Country
    Netherlands Netherlands
    I can't get it to work a simple thing as this. Not sure why i'm messing it up.


    Burn Notice\Burn Notice - 01.11.WMV

    <series>\Series <series> - Season <season>.Episode <episode>.<ext>

    Others are:
    Burn Notice\Burn Notice - 0111.WMV
    <series>\Series <series> - Season <season>Episode <episode>.<ext>


    I have made these parsings (just tried, but these don't work)
    Series<series>\Series <series> - Season <season>.Episode <episode>.<ext>
    <series>\Series <series> Season <season>.Episode <episode>.<ext>
    <series>\Series <series> - Season <season>Episode <episode>.<ext>
    <series>\Series <series> - Season <season> Episode <episode>.<ext>

    I disabled string replacement, so that it could not mess up the parsing.

    It's probably something simple, but I can't find it.



    And than I found it...

    <series> - <season>.<episode>.<ext>
     

    WsQ

    Portal Pro
    December 15, 2008
    145
    34
    Kangasala
    Home Country
    Finland Finland
    Is it possible to get this parsed correctly:

    WWE Friday Night Smackdown 2010 07 09 WS PDTV XviD.avi

    I couldn't find any auto-renamer (spoken about earlier in this thread) that I could easily use...
     

    Users who are viewing this thread

    Top Bottom