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