mirror of
https://github.com/moparisthebest/SickRage
synced 2024-11-16 06:15:09 -05:00
Testing another fix for anime PP issues.
This commit is contained in:
parent
42c0d7f9f6
commit
9bef354899
@ -111,6 +111,8 @@ class NameParser(object):
|
|||||||
|
|
||||||
self._compile_regexes(regexMode)
|
self._compile_regexes(regexMode)
|
||||||
for (cur_regexMode, cur_regex_name, cur_regex) in self.compiled_regexes:
|
for (cur_regexMode, cur_regex_name, cur_regex) in self.compiled_regexes:
|
||||||
|
time.sleep(0.02)
|
||||||
|
|
||||||
if doneSearch:
|
if doneSearch:
|
||||||
break
|
break
|
||||||
|
|
||||||
@ -138,10 +140,7 @@ class NameParser(object):
|
|||||||
result.show = helpers.get_show_by_name(result.series_name, useIndexer=self.useIndexers)
|
result.show = helpers.get_show_by_name(result.series_name, useIndexer=self.useIndexers)
|
||||||
|
|
||||||
if not result.show:
|
if not result.show:
|
||||||
if len(self.regexModes) > 1:
|
continue
|
||||||
break
|
|
||||||
else:
|
|
||||||
continue
|
|
||||||
|
|
||||||
result.score += 1
|
result.score += 1
|
||||||
|
|
||||||
@ -221,7 +220,7 @@ class NameParser(object):
|
|||||||
|
|
||||||
matches.append(result)
|
matches.append(result)
|
||||||
|
|
||||||
time.sleep(0.05)
|
time.sleep(0.02)
|
||||||
|
|
||||||
if len(matches):
|
if len(matches):
|
||||||
# pick best match with highest score based on placement
|
# pick best match with highest score based on placement
|
||||||
|
Loading…
Reference in New Issue
Block a user