1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-24 16:58:51 -05:00

* small refinements

This commit is contained in:
Reinhard Pointner 2012-07-13 11:15:14 +00:00
parent 8255d1d332
commit 7cf02bb235
2 changed files with 3 additions and 3 deletions

View File

@ -485,11 +485,11 @@ public class MediaBindingBean {
if (SUBTITLE_FILES.accept(mediaFile)) { if (SUBTITLE_FILES.accept(mediaFile)) {
// file is a subtitle // file is a subtitle
String name = FileUtilities.getName(mediaFile); String name = FileUtilities.getName(mediaFile).toLowerCase();
// find corresponding movie file // find corresponding movie file
for (File movie : mediaFile.getParentFile().listFiles(VIDEO_FILES)) { for (File movie : mediaFile.getParentFile().listFiles(VIDEO_FILES)) {
if (name.startsWith(FileUtilities.getName(movie))) { if (name.startsWith(FileUtilities.getName(movie).toLowerCase())) {
return movie; return movie;
} }
} }

View File

@ -120,7 +120,7 @@ public class ReleaseInfo {
List<String> output = new ArrayList<String>(items.size()); List<String> output = new ArrayList<String>(items.size());
for (String it : items) { for (String it : items) {
it = substringBefore(it, stopwords); it = strict ? clean(it, stopwords) : substringBefore(it, stopwords);
it = clean(it, blacklist); it = clean(it, blacklist);
// ignore empty values // ignore empty values