This commit is contained in:
Kovid Goyal 2018-07-13 08:13:02 +05:30
parent a0569a727d
commit 17cc008148
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -9,6 +9,7 @@ www.elcohetealaluna.com
from calibre.web.feeds.news import BasicNewsRecipe
class elcohetealaluna(BasicNewsRecipe):
title = 'El Cohete a la Luna'
__author__ = 'Darko Miletic'
@ -46,8 +47,6 @@ class elcohetealaluna(BasicNewsRecipe):
feeds = [(u'Articulos', u'https://www.elcohetealaluna.com/feed/')]
def preprocess_html(self, soup):
for image in soup.findAll(name='img'):
if image.has_key('data-src'):
for image in soup.findAll(name='img', attrs={'data-src': True}):
image['src'] = image['data-src']
return soup