From 441f2fd2cf04f79b6717df38411c1599d086c378 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Wed, 24 Apr 2013 15:17:02 +0000 Subject: [PATCH] * support single-argument cmdline usage for execute(...) --- source/net/sourceforge/filebot/cli/ScriptShell.lib.groovy | 3 ++- website/data/query-blacklist.txt | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/source/net/sourceforge/filebot/cli/ScriptShell.lib.groovy b/source/net/sourceforge/filebot/cli/ScriptShell.lib.groovy index 2d9272ee..28f3e329 100644 --- a/source/net/sourceforge/filebot/cli/ScriptShell.lib.groovy +++ b/source/net/sourceforge/filebot/cli/ScriptShell.lib.groovy @@ -139,7 +139,8 @@ def XML(bc) { import com.sun.jna.Platform def execute(Object... args) { - def cmd = args.toList()*.toString() + def cmd = args.length == 1 ? args[0] as String : args.collect{ it as String } + if (tryQuietly{ Platform.isWindows() }) { // normalize file separator for windows and run with cmd so any executable in PATH will just work cmd = ['cmd', '/c'] + cmd diff --git a/website/data/query-blacklist.txt b/website/data/query-blacklist.txt index eae3c333..203853cc 100644 --- a/website/data/query-blacklist.txt +++ b/website/data/query-blacklist.txt @@ -10,6 +10,7 @@ \d{2,4}.\b\d{2}.\b\d{2}.\b\d{2}.\b\d{2} ^(TV.)?(Show|Serie)[s]? ^[0-9]{1,2}[.] +^[A-Z0-9]$ ^[lp] ^Action$ ^Adventure$