diff --git a/recipes/sueddeutsche_mobil.recipe b/recipes/sueddeutsche_mobil.recipe index 6fea1f217d..b997427315 100644 --- a/recipes/sueddeutsche_mobil.recipe +++ b/recipes/sueddeutsche_mobil.recipe @@ -4,6 +4,7 @@ __copyright__ = '2012, 2013 Andreas Zeiser ' szmobil.sueddeutsche.de/ ''' # History +# 2015.01.02 Daily Cover from https://zeitung.sueddeutsche.de/webapp by lala-rob (web@lala-rob.de) # 2014.12.18 Fixing URL set Cover by lala-rob (web@lala-rob.de) # 2014.10.06 Fixing Login URL and Article URL by lala-rob (web@lala-rob.de) # @@ -12,6 +13,7 @@ szmobil.sueddeutsche.de/ # 2012.08.04 Initial release from calibre import strftime +import datetime from calibre.web.feeds.recipes import BasicNewsRecipe import re @@ -24,7 +26,7 @@ class SZmobil(BasicNewsRecipe): language = u'de' publication_type = u'newspaper' category = u'news, politics, Germany' - cover_url = 'http://upload.wikimedia.org/wikipedia/commons/d/d3/Suddeutsche_Zeitung_090520_M.jpg' + cover_url = 'https://zeitung.sueddeutsche.de/szdigital/public/issue/previewimage?size=l&issueId=' + (datetime.datetime.utcnow()+datetime.timedelta(hours=1)).strftime("%Y-%m-%d") + '&targetVersion=3&productId=sz' no_stylesheets = True oldest_article = 2 encoding = 'iso-8859-1' diff --git a/recipes/sueddeutschezeitung.recipe b/recipes/sueddeutschezeitung.recipe index 184cf85782..8051a8d879 100644 --- a/recipes/sueddeutschezeitung.recipe +++ b/recipes/sueddeutschezeitung.recipe @@ -4,11 +4,13 @@ __copyright__ = '2010, Darko Miletic ' www.sueddeutsche.de/sz/ ''' # History +# 2015.01.02 Daily Cover from https://zeitung.sueddeutsche.de/webapp by lala-rob (web@lala-rob.de) # 2014.12.15 Set Cover by lala-rob(web@lala-rob.de) # 2014.10.02 Fixed url Problem by lala-rob(web@lala-rob.de) from calibre.web.feeds.news import BasicNewsRecipe from calibre import strftime +import datetime class SueddeutcheZeitung(BasicNewsRecipe): title = u'Süddeutsche Zeitung' @@ -22,7 +24,7 @@ class SueddeutcheZeitung(BasicNewsRecipe): needs_subscription = True remove_empty_feeds = True delay = 1 - cover_url = 'http://upload.wikimedia.org/wikipedia/commons/d/d3/Suddeutsche_Zeitung_090520_M.jpg' + cover_url = 'https://zeitung.sueddeutsche.de/szdigital/public/issue/previewimage?size=l&issueId=' + (datetime.datetime.utcnow()+datetime.timedelta(hours=1)).strftime("%Y-%m-%d") + '&targetVersion=3&productId=sz' PREFIX = 'http://epaper.sueddeutsche.de' INDEX = PREFIX + '/app/epaper/textversion/' use_embedded_content = False