From 2e2c700fe581e914c1dd055be9c4df76bb30f413 Mon Sep 17 00:00:00 2001
From: unkn0w7n <51942695+unkn0w7n@users.noreply.github.com>
Date: Tue, 18 Jul 2023 14:21:31 +0530
Subject: [PATCH] Bloomberg -fixed double words.
when hyperlinks are present the words are duplicated in text.
---
recipes/bloomberg-business-week.recipe | 4 ++--
recipes/bloomberg.recipe | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/recipes/bloomberg-business-week.recipe b/recipes/bloomberg-business-week.recipe
index 9256f55e98..7f00977270 100644
--- a/recipes/bloomberg-business-week.recipe
+++ b/recipes/bloomberg-business-week.recipe
@@ -154,12 +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']:
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 eab6ea6c04..6db026428e 100644
--- a/recipes/bloomberg.recipe
+++ b/recipes/bloomberg.recipe
@@ -148,12 +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']:
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: