Add replacement file mask prior to search? (1 Viewer)

famewolf

Portal Pro
June 7, 2009
145
11
Home Country
United States of America United States of America
Media Center which does my recordings insists on adding the tv channel to Movies recorded OTA...which causes ALL searches for title to fail..for example "A walk in the clouds WWLFDT2"....how can I apply a "_WWLFDT2_" file mask to replace with "_" prior to the search being done? In the tv series plugin it has a section where you just add the masks you need but I couldn't find anything similar.
 

RoChess

Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    This is what the noisefilter is for in advanced settings. You can use regular expression code to build a fairly fancy construction to remove things you do not want from a title.

    You can for example append the following to the default noise filter: |^.+?(\s\w+)$

    And this would remove the 'last' word and prefixed space from the title. You didn't give enough information to make a robust expression that would work for all your titles, but on the one you provided it works.
     

    famewolf

    Portal Pro
    June 7, 2009
    145
    11
    Home Country
    United States of America United States of America
    Thank you for the reply. That's encouraging but there are no spaces other than the actual title portion...some actual filenames from different channels are:

    A Walk in the Clouds_WLTZDT2_2012_03_18_19_58_00.mp4
    Heart Condition_WTVMDT2_2012_01_22_19_58_00.mp4
    Cyclone_WXTXDT2_2012_01_15_02_58_00.mp4

    At a glance it looks like it could ignore anything after the first underscore?
     

    Users who are viewing this thread

    Top Bottom