* optimize subtitle lookup

This commit is contained in:
Reinhard Pointner 2014-11-11 06:34:29 +00:00
parent 6842d4c1c3
commit 3ddbc28500
1 changed files with 1 additions and 1 deletions

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);