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
1 changed files with 3 additions and 2 deletions

View File

@ -271,7 +271,9 @@ class TVShow(object):
return self.episodes[season][episode]
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!
if not self.status:
self.status = ''
@ -283,7 +285,6 @@ class TVShow(object):
return True
# 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)