mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-04 22:33:37 +02:00
Reduce size of images downloaded by la times recipe
This commit is contained in:
parent
0485247163
commit
ed20dd6233
1 changed files with 1 additions and 1 deletions
|
|
@ -50,7 +50,7 @@ def parse_index(self):
|
|||
|
||||
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…
Reference in a new issue