From 48340c2214e4ad3d52cfba26411c08b17ecd3ed6 Mon Sep 17 00:00:00 2001 From: unkn0wn <51942695+unkn0w7n@users.noreply.github.com> Date: Fri, 27 Jun 2025 11:05:28 +0530 Subject: [PATCH] Update toi.recipe --- recipes/toi.recipe | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/recipes/toi.recipe b/recipes/toi.recipe index 31505f7eb2..8b539fbd9d 100644 --- a/recipes/toi.recipe +++ b/recipes/toi.recipe @@ -69,8 +69,7 @@ class TheEconomicTimes(BasicNewsRecipe): def get_cover_url(self): soup = self.index_to_soup('https://www.magzter.com/IN/Bennett-Coleman-and-Company-Limited/The-Times-of-India-Delhi/Newspaper/') - for citem in soup.findAll('meta', content=lambda s: s and s.endswith('view/3.jpg')): - return citem['content'] + return soup.find('img', id=lambda s: s and 'mgd__lhd__cover' in s.split())['src'] def get_article_url(self, article): rurl = article.get('guid', None)