This commit is contained in:
Kovid Goyal 2024-05-07 16:56:12 +05:30
commit daef36b598
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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>'