Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/unkn0w7n/calibre
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed May 7, 2024
2 parents c5eda8b + 934c1be commit daef36b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion recipes/bloomberg-business-week.recipe
Expand Up @@ -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>'

Expand Down

0 comments on commit daef36b

Please sign in to comment.