mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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:
parent
96d2d4b20a
commit
e15e3383b0
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user