This commit is contained in:
Kovid Goyal 2010-11-19 15:49:11 -07:00
parent 2bbd64bd84
commit 976d0ee2d7

View File

@ -12,6 +12,7 @@ class ZeitDe(BasicNewsRecipe):
title = 'Zeit Online' title = 'Zeit Online'
description = 'Zeit Online' description = 'Zeit Online'
language = 'de' language = 'de'
encoding = 'UTF-8'
__author__ = 'Martin Pitt, Sujata Raman, Ingo Paschke and Marc Toensing' __author__ = 'Martin Pitt, Sujata Raman, Ingo Paschke and Marc Toensing'
@ -58,7 +59,7 @@ class ZeitDe(BasicNewsRecipe):
def preprocess_html(self, soup): def preprocess_html(self, soup):
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.lang
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 + '">'