mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-07 10:33:38 +00:00
Fix for published_parsed errors
This commit is contained in:
parent
5ba99db64e
commit
dfd8ead9f8
1 changed files with 4 additions and 4 deletions
|
@ -226,13 +226,13 @@ class NewznabProvider(generic.NZBProvider):
|
||||||
|
|
||||||
(title, url) = self._get_title_and_url(item)
|
(title, url) = self._get_title_and_url(item)
|
||||||
|
|
||||||
if not item.published_parsed:
|
if item.has_key('published_parsed') and item['published_parsed']:
|
||||||
logger.log(u"Unable to figure out the date for entry " + title + ", skipping it")
|
|
||||||
continue
|
|
||||||
else:
|
|
||||||
result_date = item.published_parsed
|
result_date = item.published_parsed
|
||||||
if result_date:
|
if result_date:
|
||||||
result_date = datetime.datetime(*result_date[0:6])
|
result_date = datetime.datetime(*result_date[0:6])
|
||||||
|
else:
|
||||||
|
logger.log(u"Unable to figure out the date for entry " + title + ", skipping it")
|
||||||
|
continue
|
||||||
|
|
||||||
if not search_date or result_date > search_date:
|
if not search_date or result_date > search_date:
|
||||||
search_result = classes.Proper(title, url, result_date)
|
search_result = classes.Proper(title, url, result_date)
|
||||||
|
|
Loading…
Reference in a new issue