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

* make -non-strict less strict so it never aborts when the options a fairly reasonable even though there is no apparent good match

This commit is contained in:
Reinhard Pointner 2013-05-19 16:37:52 +00:00
parent 3fefe2ce73
commit 9f7c628890

View File

@ -888,7 +888,11 @@ public class CmdlineOperations implements CmdlineInterface {
if (strict) {
throw new Exception("Multiple options: Force auto-select requires non-strict matching: " + searchResults);
} else {
if (searchResults.size() > 5) {
throw new Exception("Unable to auto-select search result: " + searchResults);
} else {
return new ArrayList<SearchResult>(searchResults);
}
}
}