1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-11-16 06:15:09 -05:00

Skips to next regex if unable to create result.show

This commit is contained in:
echel0n 2014-07-19 05:15:48 -07:00
parent 09a3333399
commit 222f702f46

View File

@ -146,6 +146,8 @@ class NameParser(object):
else: else:
if not self.naming_pattern: if not self.naming_pattern:
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:
continue
if 'season_num' in named_groups: if 'season_num' in named_groups:
tmp_season = int(match.group('season_num')) tmp_season = int(match.group('season_num'))