View Single Post
Old 03-09-2014, 02:49 PM   #9
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
OK, so the hardest part of this is getting the data into calibre in the first place.

I have a custom column named "#file", titled "Original Filename". In it, I store the filename that the Amazon book had when I added it from my Kindle, minus the file extension. It will be in the form of {book-title}_{ASIN}. I add this while I clean up the book on adding it, one here and one there, but adding many in bulk will not be a pleasant task, I imagine. (Sorry. ) I've been doing it since the beginning, though. (It was how I initially stumbled over MobileRead, I need help with "plugboards, templates, and custom columns". This is before I then became a maven myself. )

I use a custom template for sending to device, (limited to the kindle2 device driver, since other devices don't need this,) which looks like this:

Code:
program: 
ifempty(
	field('#file'),
	template(
		'{author_sort:sublist(0,1,&)}/{title} - {authors:sublist(0,1,&)}'
	)
)

It uses the contents of custom column "file" as the savepath, if available. If not, (for instance, it isn't originally from Amazon, so I left it blank) it falls back on the main template, which I actually tweaked to only use the first author.

Last edited by eschwartz; 03-09-2014 at 02:53 PM.
eschwartz is offline   Reply With Quote