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
e96687515a
@ -75,3 +75,8 @@ class ForeignPolicy(BasicNewsRecipe):
|
||||
self.log('\t', title, url, '\n\t', desc)
|
||||
feeds_dict[current_section].append({"title": title, "url": url, "description": desc})
|
||||
return [(section, articles) for section, articles in feeds_dict.items()]
|
||||
|
||||
def preprocess_html(self, soup):
|
||||
for img in soup.findAll('img', attrs={'src':True}):
|
||||
img['src'] = img['src'].split('?')[0] + '?w=600?quality=90'
|
||||
return soup
|
||||
|
Loading…
x
Reference in New Issue
Block a user