From ed0aa79f9f645b15500e4744ef87bc0ced0fd532 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Fri, 15 Mar 2019 15:17:15 +0700 Subject: [PATCH] Avoid false positives --- source/net/filebot/media/AutoDetection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/filebot/media/AutoDetection.java b/source/net/filebot/media/AutoDetection.java index 18046c9e..f99be0de 100644 --- a/source/net/filebot/media/AutoDetection.java +++ b/source/net/filebot/media/AutoDetection.java @@ -392,7 +392,7 @@ public class AutoDetection { } public boolean aliasNameMatch() { - return m.getEffectiveNamesWithoutYear().stream().map(this::normalize).anyMatch(fn::contains); + return m.getEffectiveNamesWithoutYear().stream().map(this::normalize).filter(s -> s.length() >= 5).anyMatch(fn::contains); } }