From 1aaf247294278e708fd513f6f1db2b5ce5cab261 Mon Sep 17 00:00:00 2001 From: Matthew Wells Date: Thu, 5 Apr 2018 23:31:44 -0700 Subject: [PATCH] Switch to kiosio for Oregonian cover_url --- recipes/oregonian.recipe | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/recipes/oregonian.recipe b/recipes/oregonian.recipe index 10bea041e4..d1dddd8330 100644 --- a/recipes/oregonian.recipe +++ b/recipes/oregonian.recipe @@ -4,6 +4,7 @@ __copyright__ = 'zotzot' __docformat__ = 'restructuredtext en' from calibre.web.feeds.news import BasicNewsRecipe +from datetime import date class Oregonian(BasicNewsRecipe): @@ -15,7 +16,7 @@ class Oregonian(BasicNewsRecipe): description = 'Portland, Oregon local newspaper' publisher = 'Advance Publications' category = 'news, Portland' - cover_url = 'http://bit.ly/gUgxGd' + cover_url = 'http://img.kiosko.net/{}/us/oregonian.750.jpg'.format(date.today().strftime('%Y/%m/%d')) no_stylesheets = True masthead_url = 'http://bit.ly/eocL70' remove_tags = [dict(name='div', attrs={'class': ['footer', 'content']})]