* ignore release info and other blacklisted tokens when matching nfo to movie file
This commit is contained in:
parent
59637a248a
commit
dcef239966
|
@ -105,8 +105,10 @@ class MovieHashMatcher implements AutoCompleteMatcher {
|
||||||
|
|
||||||
// match movie info to movie files that match the nfo file name
|
// match movie info to movie files that match the nfo file name
|
||||||
SortedSet<File> siblingMovieFiles = new TreeSet<File>(filter(movieFiles, new FolderFilter(nfo.getParentFile())));
|
SortedSet<File> siblingMovieFiles = new TreeSet<File>(filter(movieFiles, new FolderFilter(nfo.getParentFile())));
|
||||||
|
String baseName = stripReleaseInfo(getName(nfo));
|
||||||
|
|
||||||
for (File movieFile : siblingMovieFiles) {
|
for (File movieFile : siblingMovieFiles) {
|
||||||
if (isDerived(movieFile, nfo)) {
|
if (baseName.equalsIgnoreCase(stripReleaseInfo(getName(movieFile)))) {
|
||||||
movieByFile.put(movieFile, movie);
|
movieByFile.put(movieFile, movie);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue