1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-08-13 16:53:54 -04:00

Fixes error: SHOWUPDATER: local variable 'cur_indexerid' referenced before assignment

This commit is contained in:
Adam 2014-09-28 10:16:22 +08:00
parent 2230420720
commit 164724a63d

View File

@ -271,7 +271,9 @@ class TVShow(object):
return self.episodes[season][episode] return self.episodes[season][episode]
def should_update(self, update_date=datetime.date.today()): def should_update(self, update_date=datetime.date.today()):
cur_indexerid = self.indexerid
# In some situations self.status = None.. need to figure out where that is! # In some situations self.status = None.. need to figure out where that is!
if not self.status: if not self.status:
self.status = '' self.status = ''
@ -283,7 +285,6 @@ class TVShow(object):
return True return True
# run logic against the current show latest aired and next unaired data to see if we should bypass 'Ended' status # run logic against the current show latest aired and next unaired data to see if we should bypass 'Ended' status
cur_indexerid = self.indexerid
graceperiod = datetime.timedelta(days=30) graceperiod = datetime.timedelta(days=30)