mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Reduce size of images downloaded by la times recipe
This commit is contained in:
parent
0485247163
commit
ed20dd6233
@ -50,7 +50,7 @@ class LATimes(BasicNewsRecipe):
|
||||
|
||||
def preprocess_html(self, soup):
|
||||
for img in soup.findAll('img', attrs={'data-baseurl':True}):
|
||||
img['src'] = img['data-baseurl']
|
||||
img['src'] = img['data-baseurl'] + '/750'
|
||||
for div in soup.findAll(itemprop='articleBody'):
|
||||
div.extract()
|
||||
soup.find('body').append(div)
|
||||
|
Loading…
x
Reference in New Issue
Block a user