mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-23 16:28:51 -05:00
* support single-argument cmdline usage for execute(...)
This commit is contained in:
parent
32b7e0a37d
commit
441f2fd2cf
@ -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
|
||||
|
@ -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$
|
||||
|
Loading…
Reference in New Issue
Block a user