mirror of
https://github.com/mitb-archive/filebot
synced 2025-01-11 22:08:01 -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)
|
// try to guess what type of search might be required (minimize false negatives)
|
||||||
boolean searchBySeries = files.stream().anyMatch(f -> isEpisode(getName(f), false));
|
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) {
|
if (forceQuery != null && forceQuery.length() > 0) {
|
||||||
querySet.add(forceQuery);
|
querySet.add(forceQuery);
|
||||||
|
Loading…
Reference in New Issue
Block a user