* fix listitem duplication bug
This commit is contained in:
parent
06e6c5962f
commit
c60ce414f9
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue