Update toi.recipe

This commit is contained in:
unkn0wn 2025-06-27 11:05:28 +05:30 committed by GitHub
parent 687d9a98a5
commit 48340c2214
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -69,8 +69,7 @@ class TheEconomicTimes(BasicNewsRecipe):
def get_cover_url(self): 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/') 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 soup.find('img', id=lambda s: s and 'mgd__lhd__cover' in s.split())['src']
return citem['content']
def get_article_url(self, article): def get_article_url(self, article):
rurl = article.get('guid', None) rurl = article.get('guid', None)