mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
pep8
This commit is contained in:
parent
a0569a727d
commit
17cc008148
@ -9,6 +9,7 @@ www.elcohetealaluna.com
|
|||||||
|
|
||||||
from calibre.web.feeds.news import BasicNewsRecipe
|
from calibre.web.feeds.news import BasicNewsRecipe
|
||||||
|
|
||||||
|
|
||||||
class elcohetealaluna(BasicNewsRecipe):
|
class elcohetealaluna(BasicNewsRecipe):
|
||||||
title = 'El Cohete a la Luna'
|
title = 'El Cohete a la Luna'
|
||||||
__author__ = 'Darko Miletic'
|
__author__ = 'Darko Miletic'
|
||||||
@ -46,8 +47,6 @@ class elcohetealaluna(BasicNewsRecipe):
|
|||||||
feeds = [(u'Articulos', u'https://www.elcohetealaluna.com/feed/')]
|
feeds = [(u'Articulos', u'https://www.elcohetealaluna.com/feed/')]
|
||||||
|
|
||||||
def preprocess_html(self, soup):
|
def preprocess_html(self, soup):
|
||||||
for image in soup.findAll(name='img'):
|
for image in soup.findAll(name='img', attrs={'data-src': True}):
|
||||||
if image.has_key('data-src'):
|
image['src'] = image['data-src']
|
||||||
image['src'] = image['data-src']
|
|
||||||
return soup
|
return soup
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user