diff --git a/recipes/bloomberg-business-week.recipe b/recipes/bloomberg-business-week.recipe index 339ee74844..7f00977270 100644 --- a/recipes/bloomberg-business-week.recipe +++ b/recipes/bloomberg-business-week.recipe @@ -154,11 +154,12 @@ class Bloomberg(BasicNewsRecipe): if item['type'] == 'entity': if item['content'] and item['content'][0] and item['content'][0]['value']: - if item['subType'] == 'person' or 'security': - body += item['content'][0]['value'] if item['subType'] == 'story': - if item['data'] and item['data']['link'] and item['data']['link']['destination'] and item['data']['link']['destination']['web']: - body += '' + item.content[0].value + '' + if item['data'] and item['data']['link'] and item['data']['link']['destination']: + if 'web' in item['data']['link']['destination']: + body += '' + item['content'][0]['value'] + '' + elif item['subType'] == 'person' or 'security': + body += item['content'][0]['value'] if objects['type'] == 'quote': if 'content' not in objects: diff --git a/recipes/bloomberg.recipe b/recipes/bloomberg.recipe index dfd5b9a027..6db026428e 100644 --- a/recipes/bloomberg.recipe +++ b/recipes/bloomberg.recipe @@ -148,11 +148,12 @@ class Bloomberg(BasicNewsRecipe): if item['type'] == 'entity': if item['content'] and item['content'][0] and item['content'][0]['value']: - if item['subType'] == 'person' or 'security': - body += item['content'][0]['value'] if item['subType'] == 'story': - if item['data'] and item['data']['link'] and item['data']['link']['destination'] and item['data']['link']['destination']['web']: - body += '' + item.content[0].value + '' + if item['data'] and item['data']['link'] and item['data']['link']['destination']: + if 'web' in item['data']['link']['destination']: + body += '' + item['content'][0]['value'] + '' + elif item['subType'] == 'person' or 'security': + body += item['content'][0]['value'] if objects['type'] == 'quote': if 'content' not in objects: