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

* fix matching problems

This commit is contained in:
Reinhard Pointner 2012-01-02 16:57:41 +00:00
parent 2f78106db4
commit 55ada2f210

View File

@ -96,7 +96,8 @@ class MovieHashMatcher implements AutoCompleteMatcher {
}
return new SimpleEntry<File, Movie>(file, result);
}
return null;
return new SimpleEntry<File, Movie>(file, null);
}
});
}
@ -105,11 +106,11 @@ class MovieHashMatcher implements AutoCompleteMatcher {
try {
for (Future<Entry<File, Movie>> it : executor.invokeAll(grabMovieJobs)) {
// check if we managed to lookup the movie descriptor
if (it.get() != null) {
File file = it.get().getKey();
Movie movie = it.get().getValue();
// get file list for movie
File file = it.get().getKey();
Movie movie = it.get().getValue();
// get file list for movie
if (movie != null) {
SortedSet<File> movieParts = filesByMovie.get(movie);
if (movieParts == null) {