* fix listitem duplication bug

This commit is contained in:
Reinhard Pointner 2012-10-15 13:48:14 +00:00
parent 06e6c5962f
commit c60ce414f9
1 changed files with 4 additions and 1 deletions

View File

@ -229,7 +229,10 @@ class EpisodeListMatcher implements AutoCompleteMatcher {
// merge all episodes // merge all episodes
List<Match<File, ?>> matches = new ArrayList<Match<File, ?>>(); List<Match<File, ?>> matches = new ArrayList<Match<File, ?>>();
for (Future<List<Match<File, ?>>> future : executor.invokeAll(taskPerFolder)) { for (Future<List<Match<File, ?>>> future : executor.invokeAll(taskPerFolder)) {
matches.addAll(future.get()); // make sure each episode has unique object data
for (Match<File, ?> it : future.get()) {
matches.add(new Match<File, Episode>(it.getValue(), new Episode((Episode) it.getCandidate())));
}
} }
// handle derived files // handle derived files