mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge branch 'master' of https://github.com/unkn0w7n/calibre
This commit is contained in:
commit
9dd272e12f
@ -101,3 +101,8 @@ class Reuters(BasicNewsRecipe):
|
||||
article['url'] = 'https://{}{}'.format(base, article['url'])
|
||||
yield article
|
||||
self.log('\t', article['title'], article['url'])
|
||||
|
||||
def preprocess_html(self, soup):
|
||||
for img in soup.findAll('img', attrs={'srcset':True}):
|
||||
img['src'] = img['srcset'].split()[0]
|
||||
return soup
|
||||
|
Loading…
x
Reference in New Issue
Block a user