mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update Telegraph UK
This commit is contained in:
parent
718e3c9237
commit
771cf7e9ce
@ -82,4 +82,8 @@ class TelegraphUK(BasicNewsRecipe):
|
||||
if int(item.get('width', 0)) > 700:
|
||||
img['src'] = absolutize(item['src'])
|
||||
break
|
||||
for img in soup.findAll('div', attrs={'data-js': 'LazyImage'}):
|
||||
img['style'] = ''
|
||||
img.name = 'img'
|
||||
img['src'] = img['data-srcset'].split()[0]
|
||||
return soup
|
||||
|
Loading…
x
Reference in New Issue
Block a user