mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge branch 'master' of https://github.com/unkn0w7n/calibre
This commit is contained in:
commit
daef36b598
@ -146,7 +146,10 @@ class Bloomberg(BasicNewsRecipe):
|
||||
|
||||
else:
|
||||
data = json.loads(m2[0].text)
|
||||
data = data['props']['pageProps']['story']
|
||||
if 'story' in data['props']['pageProps']:
|
||||
data = data['props']['pageProps']['story']
|
||||
else:
|
||||
return raw
|
||||
|
||||
title = '<h1>' + data['headline'] + '</h1>'
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user