Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
Old 11-20-2010, 08:58 AM   #1
miwie
Connoisseur
miwie began at the beginning.
 
Posts: 76
Karma: 12
Join Date: Nov 2010
Device: Android, PB Pro 602
spiegelde.recipe: add cover

The following patch to the existing recipe "spiegelde.recipe" adds a cover with the frontpage of the actual edition:
Quote:
mw@miwie:~/epub$ diff -u /usr/share/calibre/recipes/spiegelde.recipe spiegelde.recipe
--- /usr/share/calibre/recipes/spiegelde.recipe 2010-09-13 10:06:00.000000000 +0200
+++ spiegelde.recipe 2010-11-20 14:53:59.000000000 +0100
@@ -5,6 +5,7 @@
spiegel.de
'''

+from time import strftime
from calibre.web.feeds.news import BasicNewsRecipe

class Spiegel_ger(BasicNewsRecipe):
@@ -43,3 +44,6 @@
rmain, rsep, rrest = main.rpartition(',')
purl = rmain + ',druck-' + rrest + ',' + rest
return purl
+
+ def get_cover_url(self):
+ return 'http://wissen.spiegel.de/wissen/titel/SP/' + strftime("%Y/%W/%j/titel.jpg")
Michael
miwie is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Old Thread] Can I add my own cover graphics? SonDan1 Calibre 13 09-20-2013 01:05 PM
Can Calibre not add a cover? capidamonte Calibre 8 06-13-2013 11:23 AM
How to add my own html page to recipe naisren Recipes 3 11-17-2010 04:37 PM
Add a cover to PRC ebooks Idoine Workshop 5 07-21-2009 01:01 PM
How to add pic of book cover Puddytat purr Workshop 4 03-16-2008 08:12 PM


All times are GMT -4. The time now is 12:42 PM.


MobileRead.com is a privately owned, operated and funded community.