From 3cd852745560adeb5a8182cfb0bf44b56e5733ac Mon Sep 17 00:00:00 2001
From: unkn0w7n <51942695+unkn0w7n@users.noreply.github.com>
Date: Tue, 18 Jul 2023 11:14:54 +0530
Subject: [PATCH 1/2] ...
---
recipes/bloomberg-business-week.recipe | 6 +++---
recipes/bloomberg.recipe | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/recipes/bloomberg-business-week.recipe b/recipes/bloomberg-business-week.recipe
index 1e24f8acc4..9fd1e5661f 100644
--- a/recipes/bloomberg-business-week.recipe
+++ b/recipes/bloomberg-business-week.recipe
@@ -146,17 +146,17 @@ class Bloomberg(BasicNewsRecipe):
if item['type'] == 'text' and item['value']:
body += item['value']
- elif item['type'] == 'link' and item['data']:
+ if item['type'] == 'link' and item['data']:
if 'href' not in item['data']:
continue
if item['content'] and item['content'][0] and item['content'][0]['value']:
body += '' + item['content'][0]['value'] + ''
- elif item['type'] == 'entity':
+ 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']
- elif item['subType'] == 'story':
+ 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 + ''
diff --git a/recipes/bloomberg.recipe b/recipes/bloomberg.recipe
index add2105430..1e82fd3458 100644
--- a/recipes/bloomberg.recipe
+++ b/recipes/bloomberg.recipe
@@ -140,17 +140,17 @@ class Bloomberg(BasicNewsRecipe):
if item['type'] == 'text' and item['value']:
body += item['value']
- elif item['type'] == 'link' and item['data']:
+ if item['type'] == 'link' and item['data']:
if 'href' not in item['data']:
continue
if item['content'] and item['content'][0] and item['content'][0]['value']:
body += '' + item['content'][0]['value'] + ''
- elif item['type'] == 'entity':
+ 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']
- elif item['subType'] == 'story':
+ 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 + ''
From a1085697fe25b70cd7b45323f50226441d8e65c0 Mon Sep 17 00:00:00 2001
From: unkn0w7n <51942695+unkn0w7n@users.noreply.github.com>
Date: Tue, 18 Jul 2023 11:16:27 +0530
Subject: [PATCH 2/2] ...
---
recipes/bloomberg-business-week.recipe | 2 +-
recipes/bloomberg.recipe | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/recipes/bloomberg-business-week.recipe b/recipes/bloomberg-business-week.recipe
index 9fd1e5661f..339ee74844 100644
--- a/recipes/bloomberg-business-week.recipe
+++ b/recipes/bloomberg-business-week.recipe
@@ -14,7 +14,7 @@ class Bloomberg(BasicNewsRecipe):
ignore_duplicate_articles = {'url'}
resolve_internal_links = True
masthead_url = 'https://assets.bwbx.io/s3/javelin/public/hub/images/BW-Logo-Black-cc9035fbb3.svg'
- delay = 3 # seconds
+ delay = 7 # seconds
extra_css = '''
#auth {font-size:small; font-weight:bold;}
#time, .chart {font-size:small;}
diff --git a/recipes/bloomberg.recipe b/recipes/bloomberg.recipe
index 1e82fd3458..dfd5b9a027 100644
--- a/recipes/bloomberg.recipe
+++ b/recipes/bloomberg.recipe
@@ -14,7 +14,7 @@ class Bloomberg(BasicNewsRecipe):
ignore_duplicate_articles = {'url', 'title'}
resolve_internal_links = True
- delay = 5 # seconds
+ delay = 7 # seconds
extra_css = '''
#auth {font-size:small; font-weight:bold;}