Help with samples filter RegEx (1 Viewer)

kiwijunglist

Super Moderator
  • Team MediaPortal
  • June 10, 2008
    6,746
    1,751
    New Zealand
    Home Country
    New Zealand New Zealand
    Hi

    I want moving pictures to ignore video files with parent folder = \Trailers\ or \Extras\

    eg.

    D:\Movies\Antman (2005)\Extras\Making of Antman.mkv

    Can someone help me with expression, current expression is:
    sample
     

    RoChess

    Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    Safer way would be:

    Code:
    sample|[\/\\](?:Extra|Trailer)[s]*[\/\\]

    That way movies containing "Extra(s)" or "Trailer(s)" as a valid part of their title are not accidently excluded (as long as their folder name contains "(year)" to avoid false positives).

    and be sure to enable the setting to "Include Parent Foldername When Mathing" obviously.
     

    kiwijunglist

    Super Moderator
  • Team MediaPortal
  • June 10, 2008
    6,746
    1,751
    New Zealand
    Home Country
    New Zealand New Zealand
    cheers.

    the trailer plugin now supports extras/trailers, so I no longer delete the extra video files included with some realeases. cheers.[DOUBLEPOST=1449554768][/DOUBLEPOST]@RoChess - your regex didn't work for me.

    [X] prefer parental folder & Source: J:\Movies [HD]

    J:\MOVIES [HD]\Escobar Paradise Lost (2014) - tt2515030\Escobar-Paradise.Lost.2014.Bluray.1080p.DTS-HD.x264-Grym.mkv
    J:\MOVIES [HD]\Escobar Paradise Lost (2014) - tt2515030\Extras\Catching Pablo.mkv[DOUBLEPOST=1449554856][/DOUBLEPOST]@ajs (trailers)(sample)(extras) is working, but obviously may ignore some movies.
     
    Last edited:

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    15,646
    10,593
    Kyiv
    Home Country
    Ukraine Ukraine
    (trailers)(sample)(extras) is working, but obviously may ignore some movies.
    Try :D
    Code:
    \\((extra)|(sample)|(trailer))s?\\
    upload_2015-12-8_9-18-33.png
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    15,646
    10,593
    Kyiv
    Home Country
    Ukraine Ukraine
    PS: If regexp in MovPic is case sensitive, try:
    Code:
    /\\((extra)|(sample)|(trailer))s?\\/ig
    OR
    Code:
    \\(([Ee][Xx][Tt][Rr][Aa])|([Ss][Aa][Mm][Pp][Ll][Ee])|([Tt][Tr][Aa][Ii][Ll][Ee][Rr]))[Ss]?\\
    :whistle::coffee:
     

    Users who are viewing this thread

    Similar threads

    Hello all, Recently I have been having a few problems importing movies to Moving Pictures using the IMDB+ plugin (missing fields) so I have decided to have a go at creating an XML based on the XBMC Local xml. This has not been tested with multi languages and it has been configured for my personal collection. I'm hoping it will work...
    Hello all, Recently I have been having a few problems importing movies to Moving Pictures using the IMDB+ plugin (missing fields)...
    Hello all, Recently I have been having a few problems importing movies to Moving Pictures using the IMDB+ plugin (missing fields)...
    Replies
    0
    Views
    515
    • Sticky
    MP1 MP2 [News] MediaPortal 2 - 2.5 Release DE
    Will be version 2.5.1 ready quite soon? I read somewhere it will be a bugfix release, no new features are probably not in focus.
    Will be version 2.5.1 ready quite soon? I read somewhere it will be a bugfix release, no new features are probably not in focus.
    We are proud to present MediaPortal 2.5 MediaPortal 2.5 is a full-blown media center software that addresses most common user...
    Replies
    70
    Views
    5K
    I have installed Mediaportal x64 and TV server X64 on a freshly built Win 11 OS. I'm getting an error related to Gentle.config . "Unable to open Gentle.Config" and "Root element is missing". Any idea how to fix this on the x64 version? Thanks Fangio (Edit: Fixed by putting newest Gentle.config file into every possible directory...
    I have installed Mediaportal x64 and TV server X64 on a freshly built Win 11 OS. I'm getting an error related to Gentle.config ...
    I have decided to rework this post, becouse is no longer relevant. The SharpDX version is already included in MediaPortal since...
    Replies
    963
    Views
    80K
    This is not possible if it is a self made series, like personal travel videos etc.
    This is not possible if it is a self made series, like personal travel videos etc.
    Hi! I have videos that I want to show in TV-Series, such as personal TV series and educational series. As some examples I have...
    Replies
    8
    Views
    2K
    MP1 MP2 MP2 - V2.4 MediaPortal 2 - 2.4 Release DE
    Good job, nice release as usual (y)
    Good job, nice release as usual (y)
    We are proud to present MediaPortal 2.4 MediaPortal 2.4 is a full-blown media center software that addresses most common user...
    Replies
    5
    Views
    3K
    Top Bottom