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

* ignore release info and other blacklisted tokens when matching nfo to movie file

This commit is contained in:
Reinhard Pointner 2012-02-16 09:42:06 +00:00
parent 59637a248a
commit dcef239966

View File

@ -105,8 +105,10 @@ class MovieHashMatcher implements AutoCompleteMatcher {
// match movie info to movie files that match the nfo file name
SortedSet<File> siblingMovieFiles = new TreeSet<File>(filter(movieFiles, new FolderFilter(nfo.getParentFile())));
String baseName = stripReleaseInfo(getName(nfo));
for (File movieFile : siblingMovieFiles) {
if (isDerived(movieFile, nfo)) {
if (baseName.equalsIgnoreCase(stripReleaseInfo(getName(movieFile)))) {
movieByFile.put(movieFile, movie);
}
}