From 28914cac42fbafb1a76b4e58b454b99629f1949f Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Wed, 26 Aug 2015 22:08:48 +0000 Subject: [PATCH] * fix issues with multi-part episodes not being recognized past Episode 50 @see https://www.filebot.net/forums/viewtopic.php?f=6&t=2942 --- source/net/filebot/similarity/EpisodeMatcher.java | 2 +- source/net/filebot/similarity/SeasonEpisodeMatcher.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/source/net/filebot/similarity/EpisodeMatcher.java b/source/net/filebot/similarity/EpisodeMatcher.java index f83e5a77..63a9b744 100644 --- a/source/net/filebot/similarity/EpisodeMatcher.java +++ b/source/net/filebot/similarity/EpisodeMatcher.java @@ -81,7 +81,7 @@ public class EpisodeMatcher extends Matcher { } - private final SeasonEpisodeMatcher seasonEpisodeMatcher = new SmartSeasonEpisodeMatcher(SeasonEpisodeMatcher.DEFAULT_SANITY, false); + private final SeasonEpisodeMatcher seasonEpisodeMatcher = new SmartSeasonEpisodeMatcher(SeasonEpisodeMatcher.LENIENT_SANITY, false); private final Map> transformCache = synchronizedMap(new HashMap>(64, 4)); private Set parseEpisodeIdentifer(File file) { diff --git a/source/net/filebot/similarity/SeasonEpisodeMatcher.java b/source/net/filebot/similarity/SeasonEpisodeMatcher.java index 529e05df..43015cde 100644 --- a/source/net/filebot/similarity/SeasonEpisodeMatcher.java +++ b/source/net/filebot/similarity/SeasonEpisodeMatcher.java @@ -18,6 +18,7 @@ import java.util.regex.Pattern; public class SeasonEpisodeMatcher { + public static final SeasonEpisodeFilter LENIENT_SANITY = new SeasonEpisodeFilter(99, 999, 9999, 1970, 2100); public static final SeasonEpisodeFilter DEFAULT_SANITY = new SeasonEpisodeFilter(50, 50, 1000, 1970, 2100); public static final SeasonEpisodeFilter STRICT_SANITY = new SeasonEpisodeFilter(10, 30, -1, -1, -1);