From 32a88cf105119130286b172925735ac4f1bd0491 Mon Sep 17 00:00:00 2001 From: KontiSR Date: Wed, 24 Sep 2014 15:38:39 +0200 Subject: [PATCH] Not skipping when self.status = None, but assigning empty string '' Added addiontional check for checking of the self.status is filled with the show status. If not, debug message is generated and the show is not updated. --- sickbeard/tv.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sickbeard/tv.py b/sickbeard/tv.py index e9735b23..d39d3419 100644 --- a/sickbeard/tv.py +++ b/sickbeard/tv.py @@ -271,7 +271,13 @@ class TVShow(object): return self.episodes[season][episode] def should_update(self, update_date=datetime.date.today()): - + + # In some situations self.status = None.. need to figure out where that is! + if not self.status: + self.status = '' + logger.log("Status missing for showid: [%s] with status: [%s]" % + (cur_indexerid, self.status), logger.DEBUG) + # if show is not 'Ended' always update (status 'Continuing' or '') if 'Ended' not in self.status: return True