From ea4d49165f6ed46090723292d23ec623292419db Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Mon, 5 Oct 2015 16:16:35 +0000 Subject: [PATCH] * improved query pre-diction for tricky cases --- source/net/filebot/ui/rename/EpisodeListMatcher.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/net/filebot/ui/rename/EpisodeListMatcher.java b/source/net/filebot/ui/rename/EpisodeListMatcher.java index fb702103..bb689ff5 100644 --- a/source/net/filebot/ui/rename/EpisodeListMatcher.java +++ b/source/net/filebot/ui/rename/EpisodeListMatcher.java @@ -5,6 +5,7 @@ import static net.filebot.MediaTypes.*; import static net.filebot.Settings.*; import static net.filebot.WebServices.*; import static net.filebot.media.MediaDetection.*; +import static net.filebot.similarity.Normalization.*; import static net.filebot.util.FileUtilities.*; import static net.filebot.util.StringUtilities.*; import static net.filebot.util.ui.SwingUI.*; @@ -286,7 +287,7 @@ class EpisodeListMatcher implements AutoCompleteMatcher { if (episodes.isEmpty() && !strict) { List detectedSeriesNames = detectSeriesNames(files, useSeriesIndex, useAnimeIndex, locale); String parentPathHint = normalizePathSeparators(getRelativePathTail(files.get(0).getParentFile(), 2).getPath()); - String suggestion = detectedSeriesNames.size() > 0 ? join(detectedSeriesNames, "; ") : parentPathHint; + String suggestion = detectedSeriesNames.size() > 0 ? join(detectedSeriesNames, "; ") : normalizePunctuation(getName(files.get(0))); List input; synchronized (inputMemory) {