From d25bae2d42df82ef1018169995f78649a38dbbe6 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Wed, 11 Jul 2012 20:22:09 +0000 Subject: [PATCH] * use starts-with-name logic for matching nfo files to movie files --- .../net/sourceforge/filebot/ui/rename/MovieHashMatcher.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/net/sourceforge/filebot/ui/rename/MovieHashMatcher.java b/source/net/sourceforge/filebot/ui/rename/MovieHashMatcher.java index 8d5577f7..07cec89d 100644 --- a/source/net/sourceforge/filebot/ui/rename/MovieHashMatcher.java +++ b/source/net/sourceforge/filebot/ui/rename/MovieHashMatcher.java @@ -111,10 +111,10 @@ class MovieHashMatcher implements AutoCompleteMatcher { // match movie info to movie files that match the nfo file name SortedSet siblingMovieFiles = new TreeSet(filter(movieFiles, new ParentFilter(nfo.getParentFile()))); - String baseName = stripReleaseInfo(getName(nfo)); + String baseName = stripReleaseInfo(getName(nfo).toLowerCase()); for (File movieFile : siblingMovieFiles) { - if (baseName.equalsIgnoreCase(stripReleaseInfo(getName(movieFile)))) { + if (stripReleaseInfo(getName(movieFile)).toLowerCase().startsWith(baseName)) { movieByFile.put(movieFile, movie); } }