From 7cf02bb235b3290a87ae102319eef4cc2f636427 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Fri, 13 Jul 2012 11:15:14 +0000 Subject: [PATCH] * small refinements --- source/net/sourceforge/filebot/format/MediaBindingBean.java | 4 ++-- source/net/sourceforge/filebot/media/ReleaseInfo.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/net/sourceforge/filebot/format/MediaBindingBean.java b/source/net/sourceforge/filebot/format/MediaBindingBean.java index c2189466..31d076d7 100644 --- a/source/net/sourceforge/filebot/format/MediaBindingBean.java +++ b/source/net/sourceforge/filebot/format/MediaBindingBean.java @@ -485,11 +485,11 @@ public class MediaBindingBean { if (SUBTITLE_FILES.accept(mediaFile)) { // file is a subtitle - String name = FileUtilities.getName(mediaFile); + String name = FileUtilities.getName(mediaFile).toLowerCase(); // find corresponding movie file for (File movie : mediaFile.getParentFile().listFiles(VIDEO_FILES)) { - if (name.startsWith(FileUtilities.getName(movie))) { + if (name.startsWith(FileUtilities.getName(movie).toLowerCase())) { return movie; } } diff --git a/source/net/sourceforge/filebot/media/ReleaseInfo.java b/source/net/sourceforge/filebot/media/ReleaseInfo.java index 87745f02..311ab79c 100644 --- a/source/net/sourceforge/filebot/media/ReleaseInfo.java +++ b/source/net/sourceforge/filebot/media/ReleaseInfo.java @@ -120,7 +120,7 @@ public class ReleaseInfo { List output = new ArrayList(items.size()); for (String it : items) { - it = substringBefore(it, stopwords); + it = strict ? clean(it, stopwords) : substringBefore(it, stopwords); it = clean(it, blacklist); // ignore empty values