From dcef2399665b1860567144846c2972ae6f00a2f5 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Thu, 16 Feb 2012 09:42:06 +0000 Subject: [PATCH] * ignore release info and other blacklisted tokens when matching nfo to movie file --- .../net/sourceforge/filebot/ui/rename/MovieHashMatcher.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/net/sourceforge/filebot/ui/rename/MovieHashMatcher.java b/source/net/sourceforge/filebot/ui/rename/MovieHashMatcher.java index c7b2b45d..e57c13a1 100644 --- a/source/net/sourceforge/filebot/ui/rename/MovieHashMatcher.java +++ b/source/net/sourceforge/filebot/ui/rename/MovieHashMatcher.java @@ -105,8 +105,10 @@ class MovieHashMatcher implements AutoCompleteMatcher { // match movie info to movie files that match the nfo file name SortedSet siblingMovieFiles = new TreeSet(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); } }