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,6 +230,8 @@ class NameParser(object):
result.release_group = match.group('release_group') result.release_group = match.group('release_group')
result.score += 1 result.score += 1
if self.showObj:
result.show = self.showObj
if getattr(self.showObj, 'air_by_date', None) and result.air_date: if getattr(self.showObj, 'air_by_date', None) and result.air_date:
result.score += 1 result.score += 1
elif getattr(self.showObj, 'sports', None) and result.sports_event_date: elif getattr(self.showObj, 'sports', None) and result.sports_event_date: