mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-07 09:01:38 -04:00
...
This commit is contained in:
parent
954d8dc907
commit
ab89056f7e
@ -255,7 +255,10 @@ class WSJ(BasicNewsRecipe):
|
||||
for arts in art['collectionItems']:
|
||||
mobi = arts['content']['mobileSummary']
|
||||
title = mobi['headline']['text']
|
||||
desc = mobi['description']['content']['text']
|
||||
try:
|
||||
desc = mobi['description']['content']['text']
|
||||
except TypeError:
|
||||
desc = ''
|
||||
url = arts['id']
|
||||
self.log(' ', title, '\n\t', desc)
|
||||
articles.append({'title': title, 'description': desc, 'url': url})
|
||||
|
Loading…
x
Reference in New Issue
Block a user