Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 09-07-2016, 09:51 AM   #1
sup
Connoisseur
sup began at the beginning.
 
Posts: 95
Karma: 10
Join Date: Sep 2013
Device: Kindle Paperwhite (2012)
Setting title and date for a news ebook downloaded through calibre

Is there a way to set a date and title of an ebook from a recipe? Now the date is set to the current date, even if one downloads news that was issued a few days back (this is especially confusing when you download a few old issues in a row - it would be easy to fetch the current day from the web but I do not know how to apply it to the mobi file's metadata).
sup is offline   Reply With Quote
Old 09-07-2016, 10:10 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
conversion_options allows you to pass options to the conversion system during recipe creation. IIRC that will allow you to set pubdate though not the date added field.
kovidgoyal is online now   Reply With Quote
Advert
Old 09-07-2016, 11:09 AM   #3
sup
Connoisseur
sup began at the beginning.
 
Posts: 95
Karma: 10
Join Date: Sep 2013
Device: Kindle Paperwhite (2012)
Thanks, that worked!

(for anyone stumbling upond this, when you try to update the values from a method like parse_index(), you need to set self.conversion_options and self.title, the key for date in conversion_options is 'pubkey' and it translates the string "24/12/2016" as December 12 2016, I am not sure if this is locale dependent or not).
sup is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert date in the title of the news recipe mendesitba Recipes 4 12-09-2015 01:35 PM
OCD Issue = Unsuccessful Trying to Change Title and Author of Downloaded News dukelov3 Conversion 3 04-11-2013 08:26 AM
Remove date from news title crisnoh Recipes 1 03-17-2011 01:07 PM
Setting font sizes for downloaded news eric11210 Calibre 4 08-07-2010 04:15 PM
Date in Title when Fetching News Nigel H Calibre 1 01-13-2010 11:57 AM


All times are GMT -4. The time now is 04:34 AM.


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