From 45b21ce5d26faceec300c6bb7057c71c98c967aa Mon Sep 17 00:00:00 2001 From: echel0n Date: Wed, 17 Dec 2014 03:20:29 -0800 Subject: [PATCH] Small comparison correction --- sickbeard/tv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sickbeard/tv.py b/sickbeard/tv.py index 0efde9bb..46491d4f 100644 --- a/sickbeard/tv.py +++ b/sickbeard/tv.py @@ -1677,7 +1677,7 @@ class TVEpisode(object): self.description = getattr(myEp, 'overview', "") firstaired = getattr(myEp, 'firstaired', None) - if firstaired is None or firstaired in "0000-00-00": + if not firstaired or firstaired == "0000-00-00": firstaired = str(datetime.date.fromordinal(1)) rawAirdate = [int(x) for x in firstaired.split("-")]