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

    MP1 MP2 MP2 - V2.5 No genres after upgrade to 2.5 DE
    You need to check the wiki for TVMosaic, you have recordings as source available once TVM is installed. And of course images and music are part of the NET6 version as for NET4. If you have issues with it further infos would be good.
    You need to check the wiki for TVMosaic, you have recordings as source available once TVM is installed. And of course images and...
    Make sure that your system (Windows, codecs and drivers) is up to date, matching the Requirements and you've filled in your System...
    Replies
    10
    Views
    1K
    @doskabouter That fixed it, thanks!
    @doskabouter That fixed it, thanks!
    I just upgraded to 1.32 and now, when I start TV-Service Config, I get this error: [2024-01-31 09:33:13,138] [Log ] [SetupTv...
    Replies
    2
    Views
    602
    (egg in face) I had to dnld SD plugin mpe1 to re install. trying again Thnx
    (egg in face) I had to dnld SD plugin mpe1 to re install. trying again Thnx
    Pre Releases are provided as a way for the community to test and give feedback on all the exciting things we have lined up for the...
    Replies
    40
    Views
    5K
    Yes, unfortunately, this would need a code change to support it. Next time I'm doing something on the plugin I'll try and remember to add support for this sort order.
    Yes, unfortunately, this would need a code change to support it. Next time I'm doing something on the plugin I'll try and...
    Hi, I was wondering if there is anyone who might be able to help me out. Is there a way to either use the sort feature and/or a...
    Replies
    6
    Views
    844
    • Sticky
    Your log clearly reports: [2024-03-03 18:26:58,258] [Log ] [MPMain ] [DEBUG] - Main: Wait for TV service requested [2024-03-03 18:26:58,262] [Log ] [MPMain ] [DEBUG] - Main: TV service found. Checking status... [2024-03-03 18:26:58,263] [Log ] [MPMain ] [INFO ] - Main: TV service is in status Running - proceeding...
    Your log clearly reports: [2024-03-03 18:26:58,258] [Log ] [MPMain ] [DEBUG] - Main: Wait for TV service requested...
    MediaPortal 1.33 Release Written by Team-MediaPortal. We have just released MediaPortal 1.33 - Springtime / 20th Anniversary...
    Replies
    7
    Views
    1K
    Top Bottom