Help with samples filter RegEx (1 Viewer)

kiwijunglist

Super Moderator
  • Team MediaPortal
  • June 10, 2008
    6,743
    1,754
    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,743
    1,754
    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,806
    13,143
    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,806
    13,143
    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
    1K
    All good now!!
    All good now!!
    We have just released MediaPortal 1.36 - Polar Express x86 and x64 version. Highlights of this release Bugfixes: [MP1-5229] -...
    Replies
    2
    Views
    2K
    • Sticky
    MP1 MP2 [News] MediaPortal 2 - 2.5 Release DE
    thanks
    thanks
    We are proud to present MediaPortal 2.5 MediaPortal 2.5 is a full-blown media center software that addresses most common user...
    Replies
    77
    Views
    22K
    Thanks for the help, much appreciated.
    Thanks for the help, much appreciated.
    I have decided to rework this post, becouse is no longer relevant. The SharpDX version is already included in MediaPortal since...
    Replies
    1K
    Views
    185K
    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
    3K
    Top Bottom