From: David ‘Bombe’ Roden Date: Thu, 19 Sep 2013 09:46:14 +0000 (+0200) Subject: Make episode-number pattern detection case-insensitive. X-Git-Tag: v2~276 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=bfdb02dbeca63d3caa30e93ec1595f2274929ab6;p=rhynodge.git Make episode-number pattern detection case-insensitive. --- diff --git a/src/main/java/net/pterodactylus/rhynodge/filters/EpisodeFilter.java b/src/main/java/net/pterodactylus/rhynodge/filters/EpisodeFilter.java index f206dc3..06e88e1 100644 --- a/src/main/java/net/pterodactylus/rhynodge/filters/EpisodeFilter.java +++ b/src/main/java/net/pterodactylus/rhynodge/filters/EpisodeFilter.java @@ -43,7 +43,7 @@ import net.pterodactylus.rhynodge.states.TorrentState.TorrentFile; public class EpisodeFilter implements Filter { /** The pattern to parse episode information from the filename. */ - private static final Collection episodePatterns = asList(Pattern.compile("S(\\d{2})E(\\d{2})"), Pattern.compile("[^\\d](\\d{1,2})x(\\d{2})[^\\d]")); + private static final Collection episodePatterns = asList(Pattern.compile("[Ss](\\d{2})[Ee](\\d{2})"), Pattern.compile("[^\\d](\\d{1,2})x(\\d{2})[^\\d]")); // // FILTER METHODS