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:
parent
6842d4c1c3
commit
3ddbc28500
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user