Private GIT

Skip to content
Snippets Groups Projects
Commit 409fba88 authored by miigotu's avatar miigotu
Browse files

Hacky fix for 11.22.63, the warning was never really an error anyways, just a...

Hacky fix for 11.22.63, the warning was never really an error anyways, just a warning on one of the regex iterations that it didnt match to
Fixes https://github.com/SickRage/sickrage-issues/issues/1221
parent 27931760
Branches
No related tags found
No related merge requests found
...@@ -156,6 +156,7 @@ class NameParser(object): ...@@ -156,6 +156,7 @@ class NameParser(object):
if 'air_date' in named_groups: if 'air_date' in named_groups:
air_date = match.group('air_date') air_date = match.group('air_date')
try: try:
assert re.sub(r'[^\d]*', '', air_date) != '112263'
result.air_date = dateutil.parser.parse(air_date, fuzzy_with_tokens=True)[0].date() result.air_date = dateutil.parser.parse(air_date, fuzzy_with_tokens=True)[0].date()
result.score += 1 result.score += 1
except Exception: except Exception:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment