home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
Moving Pictures
Noise Filter Exchange
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="RoChess" data-source="post: 551362" data-attributes="member: 18896"><p>There might be other users who have weird filenames that throw off the Moving Pictures plugin auto-approval rate without modification. To fix this you can use the 'Noise Filter' option to clean up your filenames before they are passed onto the scrapers, such as the one for imdb.com. You can find the Noise Filter option under the "About" tab -> "Advanced Settings" button and then locate the one for the 'Noise Filter'.</p><p></p><p>The filter I use = <strong>\s-\s\d+x\d+.+|\(Director\'s\sCut\)|\(Live\)|\(Unrated\)|\(Extended\)|\(Screener\)</strong></p><p></p><p>This takes care of filenames such as: "Elephants Dream [2006] - 1920x1080 S-MPEG 4.2 @ 448Kbps AC3.avi"</p><p></p><p>But it also takes care of filenames such as "THX 1138 (Director's Cut) [2004].avi"</p><p></p><p>The Noise Filter is a Regular Expression, I'm not a master in them, but I'll try to explain the one I use:</p><p></p><p style="margin-left: 20px">| = seperates multiple patterns</p> <p style="margin-left: 20px">\s = space</p> <p style="margin-left: 20px">\d = single decimal number</p> <p style="margin-left: 20px">\d+ = multiple decimal numbers</p> <p style="margin-left: 20px">\' = '</p> <p style="margin-left: 20px">\( = since '(' can be used by an expression you need to use '\(' when you want to locate a '('</p><p></p><p>So the "\(Director\'s\sCut\)" part simply means locate "(Director's Cut)" and it will be ignored. Now I could have used a single "\(.+\)" to match all "(.....)" parts and ignore them, but I also put Foreign language movie title translations between those parentheses, which are sometimes needed to match the right title.</p><p></p><p>The more complex "\s-\s\d+x\d+.+" one looks for "(space)-(space)(decimal numbers)x(decimal numbers)....." where the .+ means that any character is valid and there has to be at least 1. Can also use .* which means any character even if none exists. Taken the example filename, this turns "Elephants Dream [2006] - 1920x1080 S-MPEG 4.2 @ 448Kbps AC3.avi" into "Elephants Dream [2006]" by stripping out the part that matches and results in an auto-approve match via the imdb.com scraper.</p><p></p><p>For more explanations on Regular Expressions as well as ability to test out your creation use: <a href="http://www.gskinner.com/RegExr/" target="_blank">RegExr: Online Regular Expression Testing Tool</a>. If you paste a printout of your filenames into the big box (you could use "dir /b/ogn > dirlist.txt" for example to do so), then you can create and test out your own 'Noise Filter' easy.</p></blockquote><p></p>
[QUOTE="RoChess, post: 551362, member: 18896"] There might be other users who have weird filenames that throw off the Moving Pictures plugin auto-approval rate without modification. To fix this you can use the 'Noise Filter' option to clean up your filenames before they are passed onto the scrapers, such as the one for imdb.com. You can find the Noise Filter option under the "About" tab -> "Advanced Settings" button and then locate the one for the 'Noise Filter'. The filter I use = [b]\s-\s\d+x\d+.+|\(Director\'s\sCut\)|\(Live\)|\(Unrated\)|\(Extended\)|\(Screener\)[/b] This takes care of filenames such as: "Elephants Dream [2006] - 1920x1080 S-MPEG 4.2 @ 448Kbps AC3.avi" But it also takes care of filenames such as "THX 1138 (Director's Cut) [2004].avi" The Noise Filter is a Regular Expression, I'm not a master in them, but I'll try to explain the one I use: [INDENT]| = seperates multiple patterns \s = space \d = single decimal number \d+ = multiple decimal numbers \' = ' \( = since '(' can be used by an expression you need to use '\(' when you want to locate a '('[/INDENT] So the "\(Director\'s\sCut\)" part simply means locate "(Director's Cut)" and it will be ignored. Now I could have used a single "\(.+\)" to match all "(.....)" parts and ignore them, but I also put Foreign language movie title translations between those parentheses, which are sometimes needed to match the right title. The more complex "\s-\s\d+x\d+.+" one looks for "(space)-(space)(decimal numbers)x(decimal numbers)....." where the .+ means that any character is valid and there has to be at least 1. Can also use .* which means any character even if none exists. Taken the example filename, this turns "Elephants Dream [2006] - 1920x1080 S-MPEG 4.2 @ 448Kbps AC3.avi" into "Elephants Dream [2006]" by stripping out the part that matches and results in an auto-approve match via the imdb.com scraper. For more explanations on Regular Expressions as well as ability to test out your creation use: [url=http://www.gskinner.com/RegExr/]RegExr: Online Regular Expression Testing Tool[/url]. If you paste a printout of your filenames into the big box (you could use "dir /b/ogn > dirlist.txt" for example to do so), then you can create and test out your own 'Noise Filter' easy. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
Moving Pictures
Noise Filter Exchange
Contact us
RSS
Top
Bottom