Merge branch 'oregonian_cover_url' of https://github.com/mattwellss/calibre

This commit is contained in:
Kovid Goyal 2018-04-06 13:29:41 +05:30
commit 421fda6e5a
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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']})]