1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-02 08:25:02 -04:00

* fix listitem duplication bug

This commit is contained in:
Reinhard Pointner 2012-10-15 13:48:14 +00:00
parent 06e6c5962f
commit c60ce414f9

View File

@ -229,7 +229,10 @@ class EpisodeListMatcher implements AutoCompleteMatcher {
// merge all episodes
List<Match<File, ?>> matches = new ArrayList<Match<File, ?>>();
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