mirror of
https://github.com/moparisthebest/SickRage
synced 2025-03-03 01:52:02 -05:00
Check for KeyError when looking for pubdate in rssfeed.
This commit is contained in:
parent
c62d8f2c79
commit
cf6b61e4fe
@ -360,16 +360,16 @@ class NewznabProvider(generic.NZBProvider):
|
||||
|
||||
try:
|
||||
result_date = datetime.datetime(*item['published_parsed'][0:6])
|
||||
except AttributeError:
|
||||
except (AttributeError, KeyError):
|
||||
try:
|
||||
result_date = datetime.datetime(*item['updated_parsed'][0:6])
|
||||
except AttributeError:
|
||||
except (AttributeError, KeyError):
|
||||
try:
|
||||
result_date = datetime.datetime(*item['created_parsed'][0:6])
|
||||
except AttributeError:
|
||||
except (AttributeError, KeyError):
|
||||
try:
|
||||
result_date = datetime.datetime(*item['date'][0:6])
|
||||
except AttributeError:
|
||||
except (AttributeError, KeyError):
|
||||
logger.log(u"Unable to figure out the date for entry " + title + ", skipping it")
|
||||
continue
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user