mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
Add cover to spiegel
This commit is contained in:
parent
a241396854
commit
e22de1bbdb
@ -6,6 +6,7 @@ __copyright__ = '2009, Darko Miletic <darko.miletic at gmail.com>'
|
|||||||
spiegel.de
|
spiegel.de
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
from time import strftime
|
||||||
from calibre.web.feeds.news import BasicNewsRecipe
|
from calibre.web.feeds.news import BasicNewsRecipe
|
||||||
|
|
||||||
class Spiegel_ger(BasicNewsRecipe):
|
class Spiegel_ger(BasicNewsRecipe):
|
||||||
@ -44,3 +45,6 @@ class Spiegel_ger(BasicNewsRecipe):
|
|||||||
rmain, rsep, rrest = main.rpartition(',')
|
rmain, rsep, rrest = main.rpartition(',')
|
||||||
purl = rmain + ',druck-' + rrest + ',' + rest
|
purl = rmain + ',druck-' + rrest + ',' + rest
|
||||||
return purl
|
return purl
|
||||||
|
|
||||||
|
def get_cover_url(self):
|
||||||
|
return 'http://wissen.spiegel.de/wissen/titel/SP/' + strftime("%Y/%W/%j/titel.jpg")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user