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

* optimize subtitle lookup

This commit is contained in:
Reinhard Pointner 2014-11-11 06:34:29 +00:00
parent 6842d4c1c3
commit 3ddbc28500

View File

@ -70,7 +70,7 @@ public final class SubtitleUtilities {
// try to guess what type of search might be required (minimize false negatives)
boolean searchBySeries = files.stream().anyMatch(f -> isEpisode(getName(f), false));
boolean searchByMovie = files.stream().allMatch(f -> !isEpisode(getName(f), true));
boolean searchByMovie = files.stream().anyMatch(f -> !isEpisode(getName(f), true));
if (forceQuery != null && forceQuery.length() > 0) {
querySet.add(forceQuery);