mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
Make the article images slightly larger
This commit is contained in:
parent
28848cf705
commit
aeb24eb356
@ -85,5 +85,6 @@ class TelegraphUK(BasicNewsRecipe):
|
|||||||
for img in soup.findAll('div', attrs={'data-js': 'LazyImage'}):
|
for img in soup.findAll('div', attrs={'data-js': 'LazyImage'}):
|
||||||
img['style'] = ''
|
img['style'] = ''
|
||||||
img.name = 'img'
|
img.name = 'img'
|
||||||
img['src'] = img['data-srcset'].split()[0]
|
srcs = [x.split(' ')[0].strip() for x in img['data-srcset'].split(',')]
|
||||||
|
img['src'] = srcs[1 if len(srcs) > 0 else 0]
|
||||||
return soup
|
return soup
|
||||||
|
Loading…
x
Reference in New Issue
Block a user