mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update bloomberg-business-week.recipe
This commit is contained in:
parent
c5eda8bbf3
commit
934c1be889
@ -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