* support for passing in white list pattern in cleaner script
@see http://www.filebot.net/forums/viewtopic.php?f=6&t=762#p5731
This commit is contained in:
parent
0436869bee
commit
f602e19fa7
|
@ -5,6 +5,11 @@ def deleteRootFolder = tryQuietly{ root.toBoolean() }
|
|||
* Delete orphaned "clutter" files like nfo, jpg, etc and sample files
|
||||
*/
|
||||
def isClutter(f) {
|
||||
// white list
|
||||
def ignore = tryQuietly{ ignore } ?: /extrathumbs/
|
||||
if (f.path =~ "(?i)\\b($ignore)\\b") return false
|
||||
|
||||
// black list
|
||||
def exts = tryQuietly{ exts } ?: /jpg|jpeg|png|gif|nfo|xml|htm|html|log|srt|sub|idx|md5|sfv|txt|rtf|url|db|dna|log/
|
||||
def terms = tryQuietly{ terms } ?: /sample|trailer|extras|deleted.scenes|music.video|scrapbook/
|
||||
def maxsize = tryQuietly{ maxsize as Long } ?: 100 * 1024 * 1024
|
||||
|
|
Loading…
Reference in New Issue