Fix Zeit Online

This commit is contained in:
Kovid Goyal 2010-12-14 09:18:03 -07:00
parent 2c652bdee7
commit 032890d06f

View File

@ -60,7 +60,7 @@ class ZeitDe(BasicNewsRecipe):
for tag in soup.findAll(name=['ul','li']): for tag in soup.findAll(name=['ul','li']):
tag.name = 'div' tag.name = 'div'
soup.html['xml:lang'] = self.lang soup.html['xml:lang'] = self.language.replace('_', '-')
soup.html['lang'] = self.lang soup.html['lang'] = self.lang
mtag = '<meta http-equiv="Content-Type" content="text/html; charset=' + self.encoding + '">' mtag = '<meta http-equiv="Content-Type" content="text/html; charset=' + self.encoding + '">'
soup.head.insert(0,mtag) soup.head.insert(0,mtag)