mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
8e1982c700
commit
f25c42f027
@ -101,7 +101,10 @@ def parse_section(raw_html):
|
||||
continue
|
||||
title = text(elem['headlines'])
|
||||
description = text(elem.get('description'))
|
||||
url = absolutize_url(elem['canonical_url'])
|
||||
try:
|
||||
url = absolutize_url(elem['canonical_url'])
|
||||
except KeyError:
|
||||
continue
|
||||
yield {'title': title, 'url': url, 'description': description, 'date': ' ' + str(date.date())}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user