* fix subtitle movie match bug
@see https://www.filebot.net/forums/viewtopic.php?f=6&t=2802
This commit is contained in:
parent
d9a7e6ca00
commit
801d0e5ee7
|
@ -85,8 +85,9 @@ class MovieHashMatcher implements AutoCompleteMatcher {
|
||||||
derivatesByMovieFile.put(movieFile, new ArrayList<File>());
|
derivatesByMovieFile.put(movieFile, new ArrayList<File>());
|
||||||
}
|
}
|
||||||
for (File file : orphanedFiles) {
|
for (File file : orphanedFiles) {
|
||||||
|
List<File> orphanParent = listPath(file);
|
||||||
for (File movieFile : movieFiles) {
|
for (File movieFile : movieFiles) {
|
||||||
if (isDerived(file, movieFile)) {
|
if (orphanParent.contains(movieFile.getParentFile()) && isDerived(file, movieFile)) {
|
||||||
derivatesByMovieFile.get(movieFile).add(file);
|
derivatesByMovieFile.get(movieFile).add(file);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue