Nois Filter Regular Expression (1 Viewer)

Erazor2

Portal Member
September 6, 2007
11
0
Home Country
Germany Germany
Hi 2 all,

in a previous version of moving pictures i used a similiar regex like explaind in that post:
https://forum.team-mediaportal.com/moving-pictures-284/regular-expressions-46922/

My Filenames look like "Originaltitle [Germantitle,language1,language2,...] (year) CD1.ext"
I used to remove the [*] by adding the following regex to the nois filter:
\[.*\]

I tried that one again, but i won't work.

Can somebody help me?

greets
 

armandp

Retired Team Member
  • Premium Supporter
  • April 6, 2008
    990
    620
    Zoetermeer
    Home Country
    Netherlands Netherlands
    \[.*\] should work fine.. maybe you made an error in the complete expression? Can you post the complete expression here?
     

    Erazor2

    Portal Member
    September 6, 2007
    11
    0
    Home Country
    Germany Germany
    sure:
    first i tried
    (\b(576p|720p|1080p|1080i|dircut|directors cut|dvdrip|dvdscreener|dvdscr|avchd|wmv|ntsc|pal|mpeg|dsr|hd|r5|dvd|dvdr|dvd5|dvd9|bd5|bd9|dts|ac3|bluray|blu-ray|hdtv|pdtv|stv|hddvd|xvid|divx|x264|dxva|(?-i)FESTIVAL|LIMITED|WS|FS|PROPER|REPACK|RERIP|REAL|RETAIL|EXTENDED|REMASTERED|UNRATED|CHRONO|THEATRICAL|DC|SE|UNCUT|INTERNAL|DUBBED|SUBBED|\[.*\])\b?([-].+?$)?)

    then
    (\b(576p|720p|1080p|1080i|dircut|directors cut|dvdrip|dvdscreener|dvdscr|avchd|wmv|ntsc|pal|mpeg|dsr|hd|r5|dvd|dvdr|dvd5|dvd9|bd5|bd9|dts|ac3|bluray|blu-ray|hdtv|pdtv|stv|hddvd|xvid|divx|x264|dxva|(?-i)FESTIVAL|LIMITED|WS|FS|PROPER|REPACK|RERIP|REAL|RETAIL|EXTENDED|REMASTERED|UNRATED|CHRONO|THEATRICAL|DC|SE|UNCUT|INTERNAL|DUBBED|SUBBED)\b(\[.*\])?([-].+?$)?)

    none of them worked for me...
     

    armandp

    Retired Team Member
  • Premium Supporter
  • April 6, 2008
    990
    620
    Zoetermeer
    Home Country
    Netherlands Netherlands
    Try to place it somewhere before: |(?-i)FESTIVAL
    Or copy this one:

    Code:
    (\b(576p|720p|1080p|1080i|dircut|directors cut|dvdrip|dvdscreener|dvdscr|avchd|wmv|ntsc|pal|mpeg|dsr|hd|r5|dvd|dvdr|dvd5|dvd9|bd5|bd9|dts|ac3|bluray|blu-ray|hdtv|pdtv|stv|hddvd|xvid|divx|x264|dxva|\[.*\]|(?-i)FESTIVAL|LIMITED|WS|FS|PROPER|REPACK|RERIP|REAL|RETAIL|EXTENDED|REMASTERED|UNRATED|CHRONO|THEATRICAL|DC|SE|UNCUT|INTERNAL|DUBBED|SUBBED)\b([-].+?$)?)"
     

    Erazor2

    Portal Member
    September 6, 2007
    11
    0
    Home Country
    Germany Germany
    I copied the line you gave me.
    But it won't work anyway. Still the [] an text inbetween are used for searching the movies...
    Thanks anyway. Any other suggestions?
     

    armandp

    Retired Team Member
  • Premium Supporter
  • April 6, 2008
    990
    620
    Zoetermeer
    Home Country
    Netherlands Netherlands
    I actually made a type and the trailing " should be removed from that expression - does it work now?
    If not, can you paste an exact example of a filename that doesn't have it's brackets removed so i can test something?
     

    Erazor2

    Portal Member
    September 6, 2007
    11
    0
    Home Country
    Germany Germany
    i had already removed the " from the end.
    Here is an example for a filename:
    The Last King of Scotland [Der Letze König von Schottland,deutsch] (2006).mkv
     

    armandp

    Retired Team Member
  • Premium Supporter
  • April 6, 2008
    990
    620
    Zoetermeer
    Home Country
    Netherlands Netherlands
    Ok try this...

    Code:
    (\b(576p|720p|1080p|1080i|dircut|directors cut|dvdrip|dvdscreener|dvdscr|avchd|wmv|ntsc|pal|mpeg|dsr|hd|r5|dvd|dvdr|dvd5|dvd9|bd5|bd9|dts|ac3|bluray|blu-ray|hdtv|pdtv|stv|hddvd|xvid|divx|x264|dxva|(?-i)FESTIVAL|LIMITED|WS|FS|PROPER|REPACK|RERIP|REAL|RETAIL|EXTENDED|REMASTERED|UNRATED|CHRONO|THEATRICAL|DC|SE|UNCUT|INTERNAL|DUBBED|SUBBED)\b([-].+?$)?|\[[^]]+\])

    the \b's are not allowing it to match so we put it as a seperate OR statement at the end of the expression :)

    the part i added is at the end of the expression just before the closing bracket: |\[[^]]+\]
     

    Users who are viewing this thread

    Similar threads

    • Sticky
    We have just released MediaPortal 1.29 The Phantom Menace Highlights of this release Bugfixes: [MP1-5081] - WatchDog not switch Mediaportal log to Debug level [MP1-5082] - Error when MP restart [MP1-5086] - XMLTV Import error - An item with the same key has already been added. Since Pre-Release : [MP1-5089] - MpurlSourceSplitter...
    We have just released MediaPortal 1.29 The Phantom Menace Highlights of this release Bugfixes: [MP1-5081] - WatchDog not switch...
    We have just released MediaPortal 1.29 The Phantom Menace Highlights of this release Bugfixes: [MP1-5081] - WatchDog not switch...
    Replies
    0
    Views
    584
    Sad to see you replied so late, I've long since moved from 32bit to 64bit, so you've gone through all that trouble to help me for nothing. Thanks anyway. Emph
    Sad to see you replied so late, I've long since moved from 32bit to 64bit, so you've gone through all that trouble to help me for...
    ************************************************* EDIT 2019-04-29: New version, see Gitlad for change log. Thank you SINCowboy So...
    Replies
    25
    Views
    9K
    Thanks for this new release of MP. The link on the presentation page of the new version is incorrect. It goes on the MP 1.24 thread.
    Thanks for this new release of MP. The link on the presentation page of the new version is incorrect. It goes on the MP 1.24 thread.
    We have just released MediaPortal 1.25 Final - Summer 2020 Edition Highlights of this release Bugfixes: [MP1-4966] - Update...
    Replies
    1
    Views
    3K
    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 next release. We allocate about one month for Pre Release testing. In that time we will only fix bugs, after which comes the final release! Highlights of this release Bugfixes: [MP1-4966] - Update Bass...
    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...
    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
    0
    Views
    2K
    I have implemented the string replacements also with support for "before" and "after". Not sure where it applied "after" in TvSeries, I do the replacement then on series name and episode name. Jira entry created: https://issues.team-mediaportal.com/browse/MP2-515. And changes commited to new branch...
    I have implemented the string replacements also with support for "before" and "after". Not sure where it applied "after" in...
    Currently all regular expressions used inside our MDEs are hard coded. There are requests to make them extensible: Question at...
    Replies
    14
    Views
    3K
    Top Bottom