From 09fbad342755c1b3976055b53232a8cfaba28c19 Mon Sep 17 00:00:00 2001 From: unkn0wn <51942695+unkn0w7n@users.noreply.github.com> Date: Fri, 27 Jun 2025 11:06:27 +0530 Subject: [PATCH] Update hindustan_times.recipe magzter cover --- recipes/hindustan_times.recipe | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/recipes/hindustan_times.recipe b/recipes/hindustan_times.recipe index dd6168943e..6f9dfc2928 100644 --- a/recipes/hindustan_times.recipe +++ b/recipes/hindustan_times.recipe @@ -51,8 +51,7 @@ class HindustanTimes(BasicNewsRecipe): def get_cover_url(self): soup = self.index_to_soup('https://www.magzter.com/IN/HT-Digital-Streams-Ltd./Hindustan-Times-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 preprocess_html(self, soup): for img in soup.findAll('img', attrs={'data-src': True}):