From 1782caee18178ad788953e15b099434fde3d4785 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 15 Dec 2013 22:00:41 +0530 Subject: [PATCH] Fix Spiegel Online, again --- recipes/spiegelde.recipe | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/recipes/spiegelde.recipe b/recipes/spiegelde.recipe index d0bfdf7405..7a79d9622f 100644 --- a/recipes/spiegelde.recipe +++ b/recipes/spiegelde.recipe @@ -6,7 +6,7 @@ __copyright__ = '2009, Darko Miletic ' spiegel.de ''' -import time, re +import time from contextlib import closing from calibre import as_unicode from calibre.web.feeds import feed_from_xml, Feed @@ -46,13 +46,6 @@ class Spiegel_ger(BasicNewsRecipe): feeds = [(u'Spiegel Online', u'http://www.spiegel.de/schlagzeilen/index.rss')] - def get_article_url(self, *args): - url = BasicNewsRecipe.get_article_url(self, *args).replace('#', '/#') - ai = re.search(r'ai=(\d+)', url).group(1) - soup = self.index_to_soup(url) - a = soup.find('a', href=lambda x: x and ai in x) - return 'http://www.spiegel.de' + a['href'] - def parse_feeds(self): title, url = self.feeds[0] self.report_progress(0, _('Fetching feed')+' %s...'%(title if title else url))