Improved logging

This commit is contained in:
Reinhard Pointner 2016-03-23 23:39:15 +00:00
parent 8b86e69a8f
commit e3644ec28a
1 changed files with 9 additions and 2 deletions

View File

@ -430,6 +430,9 @@ public class MediaDetection {
}
}
// DEBUG
debug.finest(format("Series Name => %s %s", names, matches));
try {
Collection<String> priorityMatchSet = new LinkedHashSet<String>();
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<String> querySet = getUniqueQuerySet(unids, names);
// DEBUG
debug.finest(format("Series Name => %s", querySet));
return querySet;
}
public static List<String> matchSeriesByMapping(Collection<File> files) throws Exception {