From 9bef354899c86cb2ac72f7564828a41d7ecfd60c Mon Sep 17 00:00:00 2001 From: echel0n Date: Thu, 17 Jul 2014 23:54:58 -0700 Subject: [PATCH] Testing another fix for anime PP issues. --- sickbeard/name_parser/parser.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/sickbeard/name_parser/parser.py b/sickbeard/name_parser/parser.py index 9c5d19a2..2f293b9f 100644 --- a/sickbeard/name_parser/parser.py +++ b/sickbeard/name_parser/parser.py @@ -111,6 +111,8 @@ class NameParser(object): self._compile_regexes(regexMode) for (cur_regexMode, cur_regex_name, cur_regex) in self.compiled_regexes: + time.sleep(0.02) + if doneSearch: break @@ -138,10 +140,7 @@ class NameParser(object): result.show = helpers.get_show_by_name(result.series_name, useIndexer=self.useIndexers) if not result.show: - if len(self.regexModes) > 1: - break - else: - continue + continue result.score += 1 @@ -221,7 +220,7 @@ class NameParser(object): matches.append(result) - time.sleep(0.05) + time.sleep(0.02) if len(matches): # pick best match with highest score based on placement