* small refinements
This commit is contained in:
parent
8255d1d332
commit
7cf02bb235
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue