1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-24 00:38:52 -05:00

* allow runs when ut_dir is set even if ut_file is not

@see http://www.filebot.net/forums/viewtopic.php?f=6&t=961
This commit is contained in:
Reinhard Pointner 2013-09-23 15:30:10 +00:00
parent 4ac8804066
commit 2a424ad3b2

View File

@ -13,7 +13,7 @@ if (tryQuietly{ !(ut_state ==~ ut_state_allow) }) {
}
// check ut mode vs standalone mode
if ((args.size() > 0 && (tryQuietly{ ut_dir }?.size() > 0 || tryQuietly{ ut_file }?.size() > 0)) || (args.size() == 0 && (tryQuietly{ ut_dir } == null || tryQuietly{ ut_file } == null))) {
if ((args.size() > 0 && (tryQuietly{ ut_dir }?.size() > 0 || tryQuietly{ ut_file }?.size() > 0)) || (args.size() == 0 && (tryQuietly{ ut_dir } == null && tryQuietly{ ut_file } == null))) {
throw new Exception("Conflicting arguments: pass in either file arguments or ut_dir/ut_file parameters but not both")
}