mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-23 16:28:51 -05:00
* small refinements
This commit is contained in:
parent
8255d1d332
commit
7cf02bb235
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user