Quote:
Originally Posted by eschwartz
Just thought I'd share a script I use to backup my Kindle sidecar data.
I use a custom column in calibre to make Amazon-sourced books match up to the .sdr data, so I can keep my notes/annotations even for sideloaded books and don't have to worry about syncing to Amazon etc.
The custom column is 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 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.
|
Eschwartz: I am confused, where am I adding this template to use to send to my kindle for the original file name??