From 58f919fece0db976d3ec96512b139a23a38f695d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 17 Sep 2009 13:50:29 -0600 Subject: [PATCH] Fix #3489 (recipe_DieZeit_doesn't work) --- src/calibre/web/feeds/recipes/recipe_zeitde.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/calibre/web/feeds/recipes/recipe_zeitde.py b/src/calibre/web/feeds/recipes/recipe_zeitde.py index 922e6e130d..1c00b74146 100644 --- a/src/calibre/web/feeds/recipes/recipe_zeitde.py +++ b/src/calibre/web/feeds/recipes/recipe_zeitde.py @@ -19,10 +19,12 @@ class ZeitDe(BasicNewsRecipe): timefmt = ' [%d %b %Y]' max_articles_per_feed = 40 no_stylesheets = True - encoding = 'latin1' + encoding = 'utf8' + remove_tags = [{'class': 'adwrap'}] + keep_only_tags = [{'name': 'div', 'class': 'content'}] - feeds = [ ('Kurznachrichten', 'http://newsfeed.zeit.de/news/index'), + feeds = [ ('Kurznachrichten', 'http://newsfeed.zeit.de/index'), ('Politik', 'http://newsfeed.zeit.de/politik/index'), ('Wirtschaft', 'http://newsfeed.zeit.de/wirtschaft/index'), ('Meinung', 'http://newsfeed.zeit.de/meinung/index'), @@ -32,5 +34,5 @@ class ZeitDe(BasicNewsRecipe): ] def print_version(self,url): - return url.replace('http://www.zeit.de/', 'http://images.zeit.de/text/').replace('?from=rss', '') + return url.replace('http://www.zeit.de/', 'http://mobil.zeit.de/')