From c813032e05aa3e4e67584b995e5ce39124943801 Mon Sep 17 00:00:00 2001 From: unkn0w7n <51942695+unkn0w7n@users.noreply.github.com> Date: Wed, 11 Dec 2024 09:26:34 +0530 Subject: [PATCH] ... --- recipes/economist.recipe | 4 +++- recipes/economist_free.recipe | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/recipes/economist.recipe b/recipes/economist.recipe index 8574988d96..8541c489b3 100644 --- a/recipes/economist.recipe +++ b/recipes/economist.recipe @@ -525,7 +525,9 @@ class Economist(BasicNewsRecipe): feeds = [] - for part in safe_dict(data, "props", "pageProps", "content", "sections"): + for part in safe_dict( + data, "props", "pageProps", "content", "headerSections" + ) + safe_dict(data, "props", "pageProps", "content", "sections"): section = safe_dict(part, "name") or '' if not section: continue diff --git a/recipes/economist_free.recipe b/recipes/economist_free.recipe index 8574988d96..8541c489b3 100644 --- a/recipes/economist_free.recipe +++ b/recipes/economist_free.recipe @@ -525,7 +525,9 @@ class Economist(BasicNewsRecipe): feeds = [] - for part in safe_dict(data, "props", "pageProps", "content", "sections"): + for part in safe_dict( + data, "props", "pageProps", "content", "headerSections" + ) + safe_dict(data, "props", "pageProps", "content", "sections"): section = safe_dict(part, "name") or '' if not section: continue