mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Switch to kiosio for Oregonian cover_url
This commit is contained in:
parent
4a9392ec3f
commit
1aaf247294
@ -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