mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
...
This commit is contained in:
parent
2bbd64bd84
commit
976d0ee2d7
@ -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 + '">'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user