* 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
1 changed files with 3 additions and 1 deletions

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);
}
}