From 4b40e0288827d13e50db13e211a6f32a29f4f2fc Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Mon, 9 Jul 2012 12:14:13 +0000 Subject: [PATCH] * slight match auto-selection tweaks --- source/net/sourceforge/filebot/cli/CmdlineOperations.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/sourceforge/filebot/cli/CmdlineOperations.java b/source/net/sourceforge/filebot/cli/CmdlineOperations.java index 28ad05d9..d65f250e 100644 --- a/source/net/sourceforge/filebot/cli/CmdlineOperations.java +++ b/source/net/sourceforge/filebot/cli/CmdlineOperations.java @@ -755,7 +755,7 @@ public class CmdlineOperations implements CmdlineInterface { // find probable matches using name similarity > 0.9 (or > 0.8 in non-strict mode) for (SearchResult result : searchResults) { float f = (query == null) ? 1 : metric.getSimilarity(query, result.getName()); - if (f >= (strict ? 0.9 : 0.8) || ((f >= 0.5 || !strict) && result.getName().toLowerCase().startsWith(query.toLowerCase()))) { + if (f >= (strict ? 0.85 : 0.75) || ((f >= 0.5 || !strict) && result.getName().toLowerCase().startsWith(query.toLowerCase()))) { if (!probableMatches.containsKey(result.toString().toLowerCase())) { probableMatches.put(result.toString().toLowerCase(), result); }