From e3644ec28abf829a93fc542611463833e4012b87 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Wed, 23 Mar 2016 23:39:15 +0000 Subject: [PATCH] Improved logging --- source/net/filebot/media/MediaDetection.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/source/net/filebot/media/MediaDetection.java b/source/net/filebot/media/MediaDetection.java index d6a7ab4c..7961d0c2 100644 --- a/source/net/filebot/media/MediaDetection.java +++ b/source/net/filebot/media/MediaDetection.java @@ -430,6 +430,9 @@ public class MediaDetection { } } + // DEBUG + debug.finest(format("Series Name => %s %s", names, matches)); + try { Collection priorityMatchSet = new LinkedHashSet(); priorityMatchSet.addAll(stripReleaseInfo(matches, true)); @@ -440,8 +443,12 @@ public class MediaDetection { } names.addAll(matches); - // don't allow duplicates - return getUniqueQuerySet(unids, names); + // filter out duplicates + List querySet = getUniqueQuerySet(unids, names); + + // DEBUG + debug.finest(format("Series Name => %s", querySet)); + return querySet; } public static List matchSeriesByMapping(Collection files) throws Exception {