Update Echo Online

Fixes #1656951 [character encoding in Newsfeed "Echo-online" is not correct](https://bugs.launchpad.net/calibre/+bug/1656951)
This commit is contained in:
Kovid Goyal 2017-01-17 18:02:55 +05:30
parent 96d2d4b20a
commit e15e3383b0

View File

@ -24,7 +24,7 @@ class Echo_Online(BasicNewsRecipe):
__author__ = 'Armin Geller'
language = 'de'
lang = 'de-DE'
encoding = 'iso-8859-1'
encoding = 'utf-8'
timefmt = ' [%a, %d %b %Y]'
@ -365,5 +365,10 @@ class Echo_Online(BasicNewsRecipe):
dict(name='ul', attrs={'class': 'funcs'}),
]
def preprocess_html(self, soup):
for img in soup.findAll('img', attrs={'data-lazy':True}):
img['src'] = img['data-lazy']
return soup
# cover_url = 'http://adcounter.darmstaedter-echo.de/webdav/files/config/gui/images/Zeitungsfaecher.gif'