* fix subtitle movie match bug

@see https://www.filebot.net/forums/viewtopic.php?f=6&t=2802
This commit is contained in:
Reinhard Pointner 2015-06-24 10:32:44 +00:00
parent d9a7e6ca00
commit 801d0e5ee7
1 changed files with 2 additions and 1 deletions

View File

@ -85,8 +85,9 @@ class MovieHashMatcher implements AutoCompleteMatcher {
derivatesByMovieFile.put(movieFile, new ArrayList<File>());
}
for (File file : orphanedFiles) {
List<File> orphanParent = listPath(file);
for (File movieFile : movieFiles) {
if (isDerived(file, movieFile)) {
if (orphanParent.contains(movieFile.getParentFile()) && isDerived(file, movieFile)) {
derivatesByMovieFile.get(movieFile).add(file);
break;
}