diff --git a/recipes/1843.recipe b/recipes/1843.recipe index 5a77a63524..dd091ec0ad 100644 --- a/recipes/1843.recipe +++ b/recipes/1843.recipe @@ -190,6 +190,7 @@ class Econ1843(BasicNewsRecipe): delay = 3 remove_empty_feeds = True ignore_duplicate_articles = {'title'} + browser_type = 'webengine' needs_subscription = False diff --git a/recipes/economist_news.recipe b/recipes/economist_news.recipe index 3fcb347c37..85d3e5e19a 100644 --- a/recipes/economist_news.recipe +++ b/recipes/economist_news.recipe @@ -26,7 +26,9 @@ def process_web_list(li_node): li_html = '' for li in li_node['items']: if li.get('textHtml'): - li_html += f'
{parse_textjson(node["textJson"])}
' return f'{node.get("text", "")}
' - elif ntype == 'IMAGE': + elif (ntype == 'IMAGE') or (node.get('__typename', '') == 'ImageComponent'): alt = '' if node.get('altText') is None else node.get('altText') cap = '' if node.get('caption'): if node['caption'].get('textHtml') is not None: cap = node['caption']['textHtml'] + elif node['caption'].get('textJson') is not None: + cap = parse_textjson(node['caption']['textJson']) + elif node['caption'].get('text') is not None: + cap = node['caption']['text'] return f'{"By " + data["byline"]}
' for node in data.get('body'): body += process_web_node(node) return '