Expressions/Rules requests (3 Viewers)

RoChess

Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    Hi,
    i have 2 series that seem to have an issue. Here are there structures
    X:\series\Spartacus Gods of the Arena\Spartacus - Gods of the Arena e01 - Past Transgressions.avi
    X:\series\The Pacific\The Pacific Part 01.mkv

    What would be the parser for these 2 examples. And if there is. Can some one point me in the direction of the command list? Sorry if that's a dumb question.

    There is a "Part 1" detection system included by default that makes it S01E01, but the "Part 01" on yours must make it fail due to 2 digits. So just add a string replacement of "The Pacific Part " ->> "The Pacific S01E" and it will then work.

    Same with "- Gods of the Arena e" ->> "S02E" (this is due to the way TheTVdB put it as Season 2 to "Spartacus")
     

    eddie357

    Portal Member
    June 22, 2012
    5
    0
    47
    Home Country
    Australia Australia
    Hi,
    i have 2 series that seem to have an issue. Here are there structures
    X:\series\Spartacus Gods of the Arena\Spartacus - Gods of the Arena e01 - Past Transgressions.avi
    X:\series\The Pacific\The Pacific Part 01.mkv

    What would be the parser for these 2 examples. And if there is. Can some one point me in the direction of the command list? Sorry if that's a dumb question.

    There is a "Part 1" detection system included by default that makes it S01E01, but the "Part 01" on yours must make it fail due to 2 digits. So just add a string replacement of "The Pacific Part " ->> "The Pacific S01E" and it will then work.

    Same with "- Gods of the Arena e" ->> "S02E" (this is due to the way TheTVdB put it as Season 2 to "Spartacus")

    Thanks for the reply Rochess.

    Yeah shortly after i posted this i just decided to go back and do that. Although Spartacus was s00 since its been classed as a special on thetvdb but i did that and it worked. i still wouldn't mind understanding the parser commands though. i know renaming is easy enough though.

    Thanks again for the reply. (y)
     

    RoChess

    Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    Well to learn the fancy parser ones you have to learn Regular Expressions first. There are thousands of websites out there to teach you and the best tool to practice is "Expresso", which is what I used myself to build the default parsing expression currently used by MP-TVSeries :)
     

    DragonQ

    Portal Pro
    August 30, 2011
    644
    79
    Home Country
    United Kingdom United Kingdom
    How does one tell the parser to ignore everything in square brackets? I've tried this replacement string but it doesn't seem to work:

    Enabled/Used As Tag/Run Before Matching/Is Regex: \x5B\w*\x5D --> <empty>
     

    RoChess

    Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    How does one tell the parser to ignore everything in square brackets? I've tried this replacement string but it doesn't seem to work:

    Enabled/Used As Tag/Run Before Matching/Is Regex: \x5B\w*\x5D --> <empty>

    RegExp it would be: \[.+\]
     

    croyfer

    Portal Member
    November 3, 2011
    6
    0
    Is there a rule I can use to tell the importer to not look inside Sample and Subs folders? Since I installed 1.2.1.0 the importer tend to pick up the sample and sub files and list them as an episode. Everything used to be okey, but since my reinstall its gone bad :-/

    I'm using the Regular expressions that came with My-Tvseries, but still no luck.

    Here is an example of subs and samples that get picked up:

    C:\Users\HTPC\Desktop\TV\Family Guy\Season 01\Family.Guy.S01E04.INTERNAL.DVDRip.XviD-SChiZO\Sample\familyguy-s01e04-sample-schizo.avi
    C:\Users\HTPC\Desktop\TV\Family Guy\Season 01\Family.Guy.S01E04.INTERNAL.DVDRip.XviD-SChiZO\Subs\familyguy-s01e04-subs-schizo.rar

    Series, seasons and episodes get parsed okey, but the Sample/Subs get picked up :(

    Tnx for all possible help :)

    Anyone got an idea for this one? I can't imagine it should be that hard to simply ignore a folder named X, but I dont have the skills atm, så please anyone?
     

    RoChess

    Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    Anyone got an idea for this one? I can't imagine it should be that hard to simply ignore a folder named X, but I dont have the skills atm, så please anyone?

    Did you try the expression reset button to make sure you are using the current default expressions? Updating skips expressions when adjustments have been made. So if you have other custom ones be sure to save those before you use the Reset option on all the expressions.
     

    croyfer

    Portal Member
    November 3, 2011
    6
    0
    Anyone got an idea for this one? I can't imagine it should be that hard to simply ignore a folder named X, but I dont have the skills atm, så please anyone?

    Did you try the expression reset button to make sure you are using the current default expressions? Updating skips expressions when adjustments have been made. So if you have other custom ones be sure to save those before you use the Reset option on all the expressions.

    Yes I have reset the expressions.

    I've written some more about this problem in this thread that you wrote in a while back.

    Do you have any ideas?
     

    nzdreamer55

    MP Donator
  • Premium Supporter
  • August 31, 2010
    465
    28
    San Luis Obispo, CA
    Home Country
    United States of America United States of America
    Hello everyone,

    I have a problem with a TV show that comes to me labeled with a different season than what is within the TVDB.com web site. The TV show on TVDB.com has 9 seasons, however when I get these shows, they are 1 season behind (because TVDB.com splits up season 1 into 1 & 2, where as the naming pattern outsid eof TVDB.com combines season 1&2 into just season 1)

    Is there a way to write an expression so that when MP-TVseries sees for example "TV.Show.Name.S08E02"

    It matches the TV show name BUT increases the season to S09 instead of S08 for matching?

    Thank you very much
    -S
     

    RoChess

    Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    Hello everyone,

    I have a problem with a TV show that comes to me labeled with a different season than what is within the TVDB.com web site. The TV show on TVDB.com has 9 seasons, however when I get these shows, they are 1 season behind (because TVDB.com splits up season 1 into 1 & 2, where as the naming pattern outsid eof TVDB.com combines season 1&2 into just season 1)

    Is there a way to write an expression so that when MP-TVseries sees for example "TV.Show.Name.S08E02"

    It matches the TV show name BUT increases the season to S09 instead of S08 for matching?

    Thank you very much
    -S

    The easiest way is to rename your files before they are parsed by MP-TVSeries.

    Simply use an automated rename system that is compatible with TheTVdB. For example SickBeard, TheReNamer, FileBot, TVDB Renamer, MediaRenamer, MyRenamer, etc, etc. Simply add this as post-processing to your method of obtaining the media and you are good to go.

    If you like to punish yourself, you could add a bunch of string replacement rules, that turn "TV Show Name S..E" into "TV Show Name S..E" and enable the option to run the replacement before running the expressions. Keep in mind that you might need to do them reverse, because if you change S04E into S05E first then the next replacement might still be activated and turn that into S06E, etc... So if you start off with "S09E --> S10E" and the next one is "S08E --> S09E" then you avoid that problem. Not even sure if that would occur though, never tested for it.
     

    Users who are viewing this thread

    Top Bottom