1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-13 11:32:20 -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.release_group = match.group('release_group')
result.score += 1 result.score += 1
if getattr(self.showObj, 'air_by_date', None) and result.air_date: if self.showObj:
result.score += 1 result.show = self.showObj
elif getattr(self.showObj, 'sports', None) and result.sports_event_date: if getattr(self.showObj, 'air_by_date', None) and result.air_date:
result.score += 1 result.score += 1
elif getattr(self.showObj, 'anime', None) and len(result.ab_episode_numbers): elif getattr(self.showObj, 'sports', None) and result.sports_event_date:
result.score += 1 result.score += 1
elif getattr(self.showObj, 'anime', None) and len(result.ab_episode_numbers):
result.score += 1
result.score += 1 result.score += 1
matches.append(result) matches.append(result)