- March 10, 2006
- 4,434
- 1,897
- Moderator
- #1
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 = \s-\s\d+x\d+.+|\(Director\'s\sCut\)|\(Live\)|\(Unrated\)|\(Extended\)|\(Screener\)
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:
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: RegExr: Online Regular Expression Testing Tool. 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.
The filter I use = \s-\s\d+x\d+.+|\(Director\'s\sCut\)|\(Live\)|\(Unrated\)|\(Extended\)|\(Screener\)
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:
| = 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 '('
\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 '('
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: RegExr: Online Regular Expression Testing Tool. 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.
Netherlands