From bbb62ea6332b393db58205eae3c8065db5169803 Mon Sep 17 00:00:00 2001 From: unkn0w7n <51942695+unkn0w7n@users.noreply.github.com> Date: Sat, 21 Sep 2024 10:52:16 +0530 Subject: [PATCH] ... --- recipes/nytfeeds.recipe | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/nytfeeds.recipe b/recipes/nytfeeds.recipe index e7e6a8ab31..3fed8877c2 100644 --- a/recipes/nytfeeds.recipe +++ b/recipes/nytfeeds.recipe @@ -46,7 +46,7 @@ def parse_vid(v): yield '
' + v['promotionalSummary'] + '
' def parse_emb(e): - if e.get('html') and 'datawrapper.dwcdn.net' in e['html']: + if e.get('html') and 'datawrapper.dwcdn.net' in e.get('html', ''): dw = re.search(r'datawrapper.dwcdn.net/(.{5})', e['html']).group(1) yield '
'.format('https://datawrapper.dwcdn.net/' + dw + '/full.png') + '
' elif e.get('promotionalMedia'):