mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update toi.recipe
This commit is contained in:
parent
687d9a98a5
commit
48340c2214
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user