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:
parent
06e6c5962f
commit
c60ce414f9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user