diff --git a/recipes/bloomberg-business-week.recipe b/recipes/bloomberg-business-week.recipe index ddba5024d6..d07dded9d3 100644 --- a/recipes/bloomberg-business-week.recipe +++ b/recipes/bloomberg-business-week.recipe @@ -45,7 +45,8 @@ def get_contents(x): if x['subType'] == 'story': if x['data'] and x['data']['link'] and x['data']['link']['destination']: if 'web' in x['data']['link']['destination']: - return '' + x.get('value', '') + ''.join(map(get_contents, x.get('content', ''))) + '' + return '' + x.get('value', '') + ''.join( + map(get_contents, x.get('content', ''))) + '' return '' + x.get('value', '') + ''.join(map(get_contents, x.get('content', ''))) + '' return '' + x.get('value', '') + ''.join(map(get_contents, x.get('content', ''))) + '' return '' + x.get('value', '') + ''.join(map(get_contents, x.get('content', ''))) + '' diff --git a/recipes/bloomberg.recipe b/recipes/bloomberg.recipe index f41000cab9..ac7e0f851e 100644 --- a/recipes/bloomberg.recipe +++ b/recipes/bloomberg.recipe @@ -46,7 +46,8 @@ def get_contents(x): if x['subType'] == 'story': if x['data'] and x['data']['link'] and x['data']['link']['destination']: if 'web' in x['data']['link']['destination']: - return '' + x.get('value', '') + ''.join(map(get_contents, x.get('content', ''))) + '' + return '' + x.get('value', '') + ''.join( + map(get_contents, x.get('content', ''))) + '' return '' + x.get('value', '') + ''.join(map(get_contents, x.get('content', ''))) + '' return '' + x.get('value', '') + ''.join(map(get_contents, x.get('content', ''))) + '' return '' + x.get('value', '') + ''.join(map(get_contents, x.get('content', ''))) + '' @@ -66,7 +67,8 @@ class Bloomberg(BasicNewsRecipe): remove_attributes = ['style', 'height', 'width'] ignore_duplicate_articles = {'url', 'title'} masthead_url = 'https://assets.bbhub.io/company/sites/70/2022/09/logoBBGblck.svg' - description = 'Bloomberg delivers business and markets news, data, analysis, and video to the world, featuring stories from Businessweek and Bloomberg News.' + description = ('Bloomberg delivers business and markets news, data, analysis, and video' + ' to the world, featuring stories from Businessweek and Bloomberg News.') simultaneous_downloads = 1