From c60ce414f9826dd02db966e992de1c92eb1b09fe Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Mon, 15 Oct 2012 13:48:14 +0000 Subject: [PATCH] * fix listitem duplication bug --- .../sourceforge/filebot/ui/rename/EpisodeListMatcher.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/net/sourceforge/filebot/ui/rename/EpisodeListMatcher.java b/source/net/sourceforge/filebot/ui/rename/EpisodeListMatcher.java index 796ea479..a5ef1b62 100644 --- a/source/net/sourceforge/filebot/ui/rename/EpisodeListMatcher.java +++ b/source/net/sourceforge/filebot/ui/rename/EpisodeListMatcher.java @@ -229,7 +229,10 @@ class EpisodeListMatcher implements AutoCompleteMatcher { // merge all episodes List> matches = new ArrayList>(); for (Future>> future : executor.invokeAll(taskPerFolder)) { - matches.addAll(future.get()); + // make sure each episode has unique object data + for (Match it : future.get()) { + matches.add(new Match(it.getValue(), new Episode((Episode) it.getCandidate()))); + } } // handle derived files