mirror of
https://github.com/mitb-archive/filebot
synced 2025-03-10 06:20:27 -04:00
* cache compiled patterns
This commit is contained in:
parent
9e41373f43
commit
ccfe94f49b
@ -111,8 +111,11 @@ public class MediaDetection {
|
|||||||
return releaseInfo.getLanguageSuffix(getName(file));
|
return releaseInfo.getLanguageSuffix(getName(file));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static final SeasonEpisodeMatcher seasonEpisodeMatcherStrict = new SeasonEpisodeMatcherWithFilter(true);
|
||||||
|
private static final SeasonEpisodeMatcher seasonEpisodeMatcherNonStrict = new SeasonEpisodeMatcherWithFilter(false);
|
||||||
|
|
||||||
public static SeasonEpisodeMatcher getSeasonEpisodeMatcher(boolean strict) {
|
public static SeasonEpisodeMatcher getSeasonEpisodeMatcher(boolean strict) {
|
||||||
return new SeasonEpisodeMatcherWithFilter(strict);
|
return strict ? seasonEpisodeMatcherStrict : seasonEpisodeMatcherNonStrict;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isEpisode(String name, boolean strict) {
|
public static boolean isEpisode(String name, boolean strict) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user