Filter out Sample directories (1 Viewer)

blargman

Portal Member
October 15, 2010
8
0
Home Country
Actually yours produced a parsing error and mp-tv ignored it. Though obviously it's the first one thats including the samples. Everything else imported fine without it :\
 

RoChess

Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    Please give me some proper filename examples that fail, otherwise recreating 'your' problem isn't possible on my end.

    Filenames containing 'sample' are properly ignored on my testbed, unless they are prefixed by 'the' (there is a Chuck episode with that title).

    Also use the new import wizard to identify which expression is used and please paste that in your response, so that the right one is being edited.
     

    NBD

    New Member
    January 7, 2011
    1
    0
    Home Country
    Sweden Sweden
    I got exactly the same problem with double episodes because of sample files/dirs.

    For example this type of filename is failing.

    [DIRECTORY]XXXXXXXXXX.XXXXXXXXXX.S01E01.720p.HDTV.x264-IMMERSE
    [FILE]XXXXXXXXXX.XXXXXXXXXX.s01e01.720p.hdtv.x264-immerse.rar
    [DIRECTORY]Sample
    [FILE]XXXXXXXXXX.XXXXXXXXXX.s01e01.720p.hdtv.x264-immerse.sample.mkv

    I get a match on both the .mkv sample file and the .rar file. I use MPTV v2.6.6.1275 with default regex settings.
     

    RoChess

    Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    I got exactly the same problem with double episodes because of sample files/dirs.
    For example this type of filename is failing.
    I get a match on both the .mkv sample file and the .rar file. I use MPTV v2.6.6.1275 with default regex settings.

    If all your files are in a subfolder to your import path then you can use a temporary fix, and that is to edit the expression by changing "\\?" into "\\", so that the expression will always look for the last folder. This will solve your problems for the time being, but will not be the final solution, so keep an eye on the expression exchange thread for the new default once I figure out a solution that works for root import path files as well.

    All fixed, please use the new default expression as per: https://forum.team-mediaportal.com/701043-post25.html

    It should make its way into the new build soon, but unless you install fresh or 'Reset' the expressions, you will have to manually update.
     

    croyfer

    Portal Member
    November 3, 2011
    6
    0
    I got exactly the same problem with double episodes because of sample files/dirs.
    For example this type of filename is failing.
    I get a match on both the .mkv sample file and the .rar file. I use MPTV v2.6.6.1275 with default regex settings.

    If all your files are in a subfolder to your import path then you can use a temporary fix, and that is to edit the expression by changing "\\?" into "\\", so that the expression will always look for the last folder. This will solve your problems for the time being, but will not be the final solution, so keep an eye on the expression exchange thread for the new default once I figure out a solution that works for root import path files as well.

    All fixed, please use the new default expression as per: https://forum.team-mediaportal.com/701043-post25.html

    It should make its way into the new build soon, but unless you install fresh or 'Reset' the expressions, you will have to manually update.

    I know this is an old thread, but I feel I have to bump it, since the solution that is provided here don't really work for me :-/

    My sample files are sometimes picked out and sometime they are not.

    Example: This one is okey, the sample file is ignored.
    Code:
    T:\Family Guy\Season 04\Family.Guy.S04E03.DVDRip.XviD-SAPHiRE\Sample\sph-fguy403-sample.avi

    But on the other hand, this sample file are parsed as an episode.
    Code:
    T:\Family Guy\Season 01\Family.Guy.S01E01.INTERNAL.DVDRip.XviD-SChiZO\Sample\familyguy-s01e01-sample-schizo.avi

    I'm thinking it's because the sample file has season and episode numbers in it. Am I correct here? In that case, how can I make a filter that picks out the sample files and folders?

    I'm getting kinda frustrated now, so I'd love anyones oppinion here.
     

    RoChess

    Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    I'm getting kinda frustrated now, so I'd love anyones oppinion here.

    Try:

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

    It is a serious modification to the sample detection system, and I did not get around to do mass testing on existing filenames.

    So try it out please.
     

    croyfer

    Portal Member
    November 3, 2011
    6
    0
    I'm getting kinda frustrated now, so I'd love anyones oppinion here.

    Try:

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

    It is a serious modification to the sample detection system, and I did not get around to do mass testing on existing filenames.

    So try it out please.

    This is just what I needed :D Now the Samples just simply go away :D Awesome!

    Would it be rude of me to ask you if you can help me out filter out the .rars that duplicate one episode. you know a rar archive where the files end with .part01.rar, .part02.rar, .part03.rar and so on... Is there a way to make the import simply pick out one instead of duplicating the episode multiple times?

    The solutions I've found so far on the forum seem to dont work with your string. Do you know why?
     

    Users who are viewing this thread

    Similar threads

    1) I just upgradede to the latest version (and nooooo it's saturday evening i did not search help) Mediaportal is flashing an I in the top left corner. 'My guess some kind of information, but what to do with it. 2) I tried to update my music "DB" and it says 18K skiped, but when i show my list it's empty. So i guess i screwed up how...
    1) I just upgradede to the latest version (and nooooo it's saturday evening i did not search help) Mediaportal is flashing an I in...
    1) I just upgradede to the latest version (and nooooo it's saturday evening i did not search help) Mediaportal is flashing an I in...
    Replies
    0
    Views
    440
    MP1 MP2 1.39 x86 1.39 won't install DE
    That did it, thanks.
    That did it, thanks.
    Before you create this bug report: Make sure that your system (windows, codecs and drivers) is up to date, matching the...
    Replies
    2
    Views
    826
    Well, all that remains is to find someone who will add this render if it is a render.
    Well, all that remains is to find someone who will add this render if it is a render.
    Are there plans to support other video renderers? MadVR got added a while ago, but this a 'hardcoded' selection in the...
    Replies
    23
    Views
    18K
    • Sticky
    Yes, that's the one ! Beware because if you uncheck that box, it disappears and you can't reinstall it again that way.
    Yes, that's the one ! Beware because if you uncheck that box, it disappears and you can't reinstall it again that way.
    We have just released MediaPortal 1.39 - Endurance x86 and x64 version. Highlights of this release Bugfixes: [MP1-5257] - Skin...
    Replies
    15
    Views
    3K
    Thankyou High_Five, that worked perfectly, I now remember doing that 10 years ago, thanks for jogging my old memory. Cheers Tony
    Thankyou High_Five, that worked perfectly, I now remember doing that 10 years ago, thanks for jogging my old memory. Cheers Tony
    Hi everyone, I have been using it For 16 years now (from V1.1.1) and it has worked flawlessly. I only use TV Series and Moving...
    Replies
    2
    Views
    785
    Top Bottom