From 3ddbc28500c5d9eefcc13f9cd5664db54d4f4edd Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Tue, 11 Nov 2014 06:34:29 +0000 Subject: [PATCH] * optimize subtitle lookup --- source/net/filebot/subtitle/SubtitleUtilities.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/filebot/subtitle/SubtitleUtilities.java b/source/net/filebot/subtitle/SubtitleUtilities.java index 77d2eed8..20d30aa0 100644 --- a/source/net/filebot/subtitle/SubtitleUtilities.java +++ b/source/net/filebot/subtitle/SubtitleUtilities.java @@ -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);