1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-12 11:02:21 -05:00

Small comparison correction

This commit is contained in:
echel0n 2014-12-17 03:20:29 -08:00
parent 3147ff2ae5
commit 45b21ce5d2

View File

@ -1677,7 +1677,7 @@ class TVEpisode(object):
self.description = getattr(myEp, 'overview', "") self.description = getattr(myEp, 'overview', "")
firstaired = getattr(myEp, 'firstaired', None) 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)) firstaired = str(datetime.date.fromordinal(1))
rawAirdate = [int(x) for x in firstaired.split("-")] rawAirdate = [int(x) for x in firstaired.split("-")]