From 70384cfd5740ad6695d6aa9c74c7ab18e2bdea73 Mon Sep 17 00:00:00 2001 From: unkn0wn <51942695+unkn0w7n@users.noreply.github.com> Date: Fri, 27 Jun 2025 11:04:25 +0530 Subject: [PATCH] Update hindustan.recipe magzter cover --- recipes/hindustan.recipe | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/recipes/hindustan.recipe b/recipes/hindustan.recipe index 262ef267f1..502f2e6f3a 100644 --- a/recipes/hindustan.recipe +++ b/recipes/hindustan.recipe @@ -44,5 +44,4 @@ class LiveHindustan(BasicNewsRecipe): def get_cover_url(self): soup = self.index_to_soup('https://www.magzter.com/IN/HT-Digital-Streams-Ltd./Hindustan-Times-Hindi-New-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']