From e54bad74711874a94c7489d8423de02288eb047f Mon Sep 17 00:00:00 2001
From: unkn0w7n <51942695+unkn0w7n@users.noreply.github.com>
Date: Tue, 18 Jul 2023 12:44:59 +0530
Subject: [PATCH] ...
---
recipes/bloomberg-business-week.recipe | 5 +++--
recipes/bloomberg.recipe | 5 +++--
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/recipes/bloomberg-business-week.recipe b/recipes/bloomberg-business-week.recipe
index 339ee74844..9256f55e98 100644
--- a/recipes/bloomberg-business-week.recipe
+++ b/recipes/bloomberg-business-week.recipe
@@ -157,8 +157,9 @@ class Bloomberg(BasicNewsRecipe):
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'] + ''
if objects['type'] == 'quote':
if 'content' not in objects:
diff --git a/recipes/bloomberg.recipe b/recipes/bloomberg.recipe
index dfd5b9a027..eab6ea6c04 100644
--- a/recipes/bloomberg.recipe
+++ b/recipes/bloomberg.recipe
@@ -151,8 +151,9 @@ class Bloomberg(BasicNewsRecipe):
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'] + ''
if objects['type'] == 'quote':
if 'content' not in objects: