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

    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
    9K
    The reason I was thinking I needed more RAM is that TV now seems to be HiDef and so the files have grown. I edit the files before storing them, to reduce some size. It is finding that slower, I think. Or it could just be because I'm expecting more? The Baseboard manufacturer says ASUSTech Computer Inc; Baseboard product P7P55D-E...
    The reason I was thinking I needed more RAM is that TV now seems to be HiDef and so the files have grown. I edit the files before...
    I'm not sure where to post this query - I've been told, during a conversation about costs of upgrading, that W11 may not support my...
    Replies
    4
    Views
    5K
    Hi This is a general question about OnX. I have been using the TvWishList plugin for a while and have recently updated (update install) from MP 1.36 x86 to 1.37 x86 and found there seemed to be no Onx menu in the TV guide. I then configured the onx.presets.xml file like I would normally do with updates or fresh installs, but still...
    Hi This is a general question about OnX. I have been using the TvWishList plugin for a while and have recently updated (update...
    Hi This is a general question about OnX. I have been using the TvWishList plugin for a while and have recently updated (update...
    Replies
    0
    Views
    773
    Reading through your code, I can see it's more than a couple steps above my paygrade. :cry:
    Reading through your code, I can see it's more than a couple steps above my paygrade. :cry:
    I used to run the TVService under the "NT Service\TVService" account to follow least privileges principal (not exposing my whole...
    Replies
    3
    Views
    2K
    I do not know why this xml was in my theme folders, it must have sneaked in some time ago (years?). I simply removed the file. The Latest Media Handler plugin seems to be working as expected. I've had no lock-ups.
    I do not know why this xml was in my theme folders, it must have sneaked in some time ago (years?). I simply removed the file. The...
    Before you create this bug report: Make sure that your system (windows, codecs and drivers) is up to date, matching the...
    Replies
    13
    Views
    4K
    Top Bottom