mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Add cover to TOI
This commit is contained in:
parent
e40e387c88
commit
817d45f6da
@ -67,6 +67,11 @@ class TheEconomicTimes(BasicNewsRecipe):
|
|||||||
# For mobile version
|
# For mobile version
|
||||||
# return 'http://m.timesofindia.com/PDAET/articleshow/' + article_id
|
# return 'http://m.timesofindia.com/PDAET/articleshow/' + article_id
|
||||||
|
|
||||||
|
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/')
|
||||||
|
for citem in soup.findAll('meta', content=lambda s: s and s.endswith('view/3.jpg')):
|
||||||
|
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)
|
||||||
if '/articleshow/' in rurl:
|
if '/articleshow/' in rurl:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user