mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Merge branch 'oregonian_cover_url' of https://github.com/mattwellss/calibre
This commit is contained in:
commit
421fda6e5a
@ -4,6 +4,7 @@ __copyright__ = 'zotzot'
|
|||||||
__docformat__ = 'restructuredtext en'
|
__docformat__ = 'restructuredtext en'
|
||||||
|
|
||||||
from calibre.web.feeds.news import BasicNewsRecipe
|
from calibre.web.feeds.news import BasicNewsRecipe
|
||||||
|
from datetime import date
|
||||||
|
|
||||||
|
|
||||||
class Oregonian(BasicNewsRecipe):
|
class Oregonian(BasicNewsRecipe):
|
||||||
@ -15,7 +16,7 @@ class Oregonian(BasicNewsRecipe):
|
|||||||
description = 'Portland, Oregon local newspaper'
|
description = 'Portland, Oregon local newspaper'
|
||||||
publisher = 'Advance Publications'
|
publisher = 'Advance Publications'
|
||||||
category = 'news, Portland'
|
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
|
no_stylesheets = True
|
||||||
masthead_url = 'http://bit.ly/eocL70'
|
masthead_url = 'http://bit.ly/eocL70'
|
||||||
remove_tags = [dict(name='div', attrs={'class': ['footer', 'content']})]
|
remove_tags = [dict(name='div', attrs={'class': ['footer', 'content']})]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user