* 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)) {
// 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;
}
}

View File

@ -120,7 +120,7 @@ public class ReleaseInfo {
List<String> output = new ArrayList<String>(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