diff --git a/website/scripts/sysinfo.groovy b/website/scripts/sysinfo.groovy index 03874a68..089b591d 100644 --- a/website/scripts/sysinfo.groovy +++ b/website/scripts/sysinfo.groovy @@ -14,7 +14,7 @@ try { // 7-Zip-JBinding: OK try { print '7-Zip-JBinding: ' - ClassLoader.systemClassLoader.loadClass("net.sourceforge.filebot.archive.SevenZipLoader") // load 7-Zip-JBinding native libs + net.sourceforge.filebot.archive.SevenZipLoader.requireNativeLibraries() // load 7-Zip-JBinding native libs println "OK" } catch(Throwable error) { println error diff --git a/website/scripts/utorrent-postprocess.groovy b/website/scripts/utorrent-postprocess.groovy index 579c0908..0ffa4ea9 100644 --- a/website/scripts/utorrent-postprocess.groovy +++ b/website/scripts/utorrent-postprocess.groovy @@ -51,15 +51,15 @@ if (args.empty) { // extract archives (zip, rar, etc) that contain at least one video file input += extract(file: input.findAll{ it.isArchive() }, output: null, conflict: 'override', filter: { it.isVideo() }, forceExtractAll: true) +// sanitize input +input = input.findAll{ it?.exists() }.collect{ it.canonicalFile }.unique() + // process only media files input = input.findAll{ it.isVideo() || it.isSubtitle() } // ignore clutter files input = input.findAll{ !(it.path =~ /\b(?i:sample|trailer|extras|deleted.scenes|music.video|scrapbook)\b/) } -// sanitize input -input = input.findAll{ it.exists() }.collect{ it.canonicalFile }.unique() - // print input fileset input.each{ f -> _log.finest("Input: $f") }