From 11d9d390271cc41922c33b8cfb82bf7f0c49e61c Mon Sep 17 00:00:00 2001 From: Alexandre Beloin Date: Sat, 21 Feb 2015 20:17:30 -0500 Subject: [PATCH] Added a specific regex for horriblesubs --- sickbeard/name_parser/regexes.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/sickbeard/name_parser/regexes.py b/sickbeard/name_parser/regexes.py index ec9543a3..74852087 100644 --- a/sickbeard/name_parser/regexes.py +++ b/sickbeard/name_parser/regexes.py @@ -198,6 +198,18 @@ normal_regexes = [ ] anime_regexes = [ + ('anime_horriblesubs', + # [HorribleSubs] Maria the Virgin Witch - 01 [720p].mkv + ''' + ^(?:\[(?PHorribleSubs)\][\s\.]) + (?:(?P.+?)[\s\.]-[\s\.]) + (?P((?!(1080|720|480)[pi]))\d{1,3}) + (-(?P((?!(1080|720|480)[pi])|(?![hx].?264))\d{1,3}))? + (?:v(?P[0-9]))? + (?:[\w\.\s]*) + (?:(?:(?:[\[\(])(?P\d{3,4}[xp]?\d{0,4}[\.\w\s-]*)(?:[\]\)]))|(?:\d{3,4}[xp])) + .*? + '''), ('anime_ultimate', """ ^(?:\[(?P.+?)\][ ._-]*)