Make the article images slightly larger

This commit is contained in:
Kovid Goyal
2018-04-10 07:33:30 +05:30
parent 28848cf705
commit aeb24eb356
+2 -1
View File
@@ -85,5 +85,6 @@ class TelegraphUK(BasicNewsRecipe):
for img in soup.findAll('div', attrs={'data-js': 'LazyImage'}):
img['style'] = ''
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