Fix --conflict auto issue (PROPER/REPACK)
@see https://www.filebot.net/forums/viewtopic.php?f=10&t=4131
This commit is contained in:
parent
17775e477f
commit
536a8c3a3a
|
@ -30,7 +30,7 @@ public class VideoQuality implements Comparator<File> {
|
|||
try {
|
||||
return comparingDouble(c).compare(f1, f2);
|
||||
} catch (Throwable e) {
|
||||
debug.warning(format("Failed to read media info: %s", e.getMessage()));
|
||||
debug.warning(format("Failed to read media info: %s", e));
|
||||
return 0;
|
||||
}
|
||||
}).filter(i -> i != 0).findFirst().orElse(0);
|
||||
|
|
|
@ -63,6 +63,10 @@ public final class StringUtilities {
|
|||
}
|
||||
|
||||
public static boolean find(String s, Pattern pattern) {
|
||||
if (s == null || s.length() == 0) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return pattern.matcher(s).find();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue