Expressions/Rules requests (3 Viewers)

gkovacsp

Portal Member
November 16, 2009
43
1
Home Country
Hungary Hungary
Is there a rule, which would tell the plugin not to parse sample.avi files or avi files, which are in a Sample folder?
 

RoChess

Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    Is there a rule, which would tell the plugin not to parse sample.avi files or avi files, which are in a Sample folder?

    That is normally part of the regular expressions to skip over the files that contain keywords like 'sample'.

    On the default filename expression this is done via the part in bold:

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

    It skips any files that contain 'sample' in the title section, but allows "The Sample"

    For example "Mad About You - S04E18 - The Sample.mkv" is not skipped.

    You did not provide any more info to help you more, such as examples of files that fail with full details.
     

    gkovacsp

    Portal Member
    November 16, 2009
    43
    1
    Home Country
    Hungary Hungary
    This one slips through:

    the.big.bang.theory.s05e01.hdtv.xvid-asap.sample.avi

    While this one does not:

    the.big.bang.theory.s05e02.proper.hdtv.xvid-tla-sample.avi

    (Both of them are in a subfolder called "Sample")

    Thanks
     

    RoChess

    Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    This one slips through:

    the.big.bang.theory.s05e01.hdtv.xvid-asap.sample.avi

    While this one does not:

    the.big.bang.theory.s05e02.proper.hdtv.xvid-tla-sample.avi

    (Both of them are in a subfolder called "Sample")

    Thanks

    They both fail on the default filename parsing expression. So what is happening is that one of the other expressions is giving you a false positive. Can you disable all the parsing expressions (except top most, as I just verified it is fine) and then retry to make sure it indeed is not picked up as valid media?

    Then please enable the other expressions one at a time to see which one is used. I believe there is a way inside Wizard to see what expression was used to match, but I forgot how that is done.

    Once I know which one is causing the problem, I can fix it.
     

    aussieuser

    New Member
    September 25, 2011
    3
    0
    Hi there,

    Could someone give me a parsing string (that's what it's called right?) for files like these:

    The Sopranos Season 1 Episode 01 - Pilot.mp4

    :D
     

    RoChess

    Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    Hi there,

    Could someone give me a parsing string (that's what it's called right?) for files like these:

    The Sopranos Season 1 Episode 01 - Pilot.mp4

    :D

    The existing expression would catch those if you add string replacements that turn "Season " into "S" and " Episode " into "E".

    Be sure to add the checkbox 'before' and you are good to go.

    This will then turn "The Sopranos Season 1 Episode 01 - Pilot.mp4" into "The Sopranos S1E01 - Pilot.mp4" which is one of the many schemes supported by default. Maybe later can look into supporting your scheme out of the box, but for now use those two string replacements.
     

    sukkubus

    Portal Member
    May 14, 2009
    5
    0
    Home Country
    Germany Germany
    AW: Expressions/Rules requests

    Hello everybody,

    can somone help with a parsing string for following

    4400\season 4\04x13 - Ein grosser Sprung nach vorn.avi

    in the past i have trouble with digits in the series name like 4400 and 24. also with digits in the name

    24\season 7\07x10 - 17.00 Uhr bis 18.00 Uhr.avi

    Thank you for helping :D

    Nicole

    ok now i am using following expression but it cant find season with number 10. all above 10 find correct Oo
    for example: \Emergency Room\season 10\10x15 - Blutsverwandte.avi


    (?<series>[^\\$]+)(?:(?:\\(?:confused:eason|Staffel|S[eé]ries?)?[ .-]?[0-2]?[1-9])?\\s?(?<season>[0-2]?[1-9])|\\(?:(?:confused:eason|Staffel|S[eé]ries?)[ .-])?(?<season>[0-2]?[1-9])\\[^\\]*?)[ex]?(?<episode>\d\d+)(?:[ .+-]e?(?<episode2>\d\d+))?(?:[ -]+(?<title>(?![^\\]*?sample)[^$]*?))?\.(?<ext>[^.]*)$

    any ideas ?
     

    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 :)
     

    Users who are viewing this thread

    Top Bottom