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:
|
else:
|
||||||
data = json.loads(m2[0].text)
|
data = json.loads(m2[0].text)
|
||||||
|
if 'story' in data['props']['pageProps']:
|
||||||
data = data['props']['pageProps']['story']
|
data = data['props']['pageProps']['story']
|
||||||
|
else:
|
||||||
|
return raw
|
||||||
|
|
||||||
title = '<h1>' + data['headline'] + '</h1>'
|
title = '<h1>' + data['headline'] + '</h1>'
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user