mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-11 09:13:57 -04:00
...
This commit is contained in:
parent
aca9529852
commit
cb146f2242
@ -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