1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-13 03:22:22 -05:00

Fix for missing code in Name Parser

This commit is contained in:
echel0n 2014-06-22 12:58:26 -07:00
parent 0573a8add6
commit 688263bd62

View File

@ -230,12 +230,14 @@ class NameParser(object):
result.release_group = match.group('release_group')
result.score += 1
if getattr(self.showObj, 'air_by_date', None) and result.air_date:
result.score += 1
elif getattr(self.showObj, 'sports', None) and result.sports_event_date:
result.score += 1
elif getattr(self.showObj, 'anime', None) and len(result.ab_episode_numbers):
result.score += 1
if self.showObj:
result.show = self.showObj
if getattr(self.showObj, 'air_by_date', None) and result.air_date:
result.score += 1
elif getattr(self.showObj, 'sports', None) and result.sports_event_date:
result.score += 1
elif getattr(self.showObj, 'anime', None) and len(result.ab_episode_numbers):
result.score += 1
result.score += 1
matches.append(result)