From 2da77c920191bae6ba0d00bdecfdf1d1a988ae5d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 12 Nov 2010 08:17:38 -0700 Subject: [PATCH] Fix #7512 (New Recipe "MarcTV.de" and updated "ZEIT ONLINE" Recipe) --- resources/recipes/zeitde.recipe | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/resources/recipes/zeitde.recipe b/resources/recipes/zeitde.recipe index 35835e0e6d..a9e730a95d 100644 --- a/resources/recipes/zeitde.recipe +++ b/resources/recipes/zeitde.recipe @@ -43,7 +43,7 @@ class ZeitDe(BasicNewsRecipe): ('Sport', 'http://newsfeed.zeit.de/sport/index'), ] - extra_css = '.reaktion,.taglist,.comments,.reponse,.responsetitle,.responsebody,.reponse,.inline,.date{display:none;}li.date{display:block}' + extra_css = '.excerpt{font-size:1em}.reaktion,.taglist,.comments,.reponse,.responsetitle,.responsebody,.reponse,.inline,.date{display:none;}li.date{display:block}' #filter_regexps = [r'ad.de.doubleclick.net/'] @@ -55,6 +55,16 @@ class ZeitDe(BasicNewsRecipe): ans = None return ans + def preprocess_html(self, soup): + for tag in soup.findAll(name=['ul','li']): + tag.name = 'div' + + soup.html['xml:lang'] = self.lang + soup.html['lang'] = self.lang + mtag = '' + soup.head.insert(0,mtag) + return soup + def get_cover_url(self): try: inhalt = self.index_to_soup('http://www.zeit.de/inhalt')