![]() |
#1 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Oct 2014
Device: none
|
Saving to disk ebook with filename that includes amazon or asin
Is there a way when saving books in disk to create a template that will use the asin or amazon number that will be included in the ids field in the metadata of the book?
What I am looking for as the filename template could be asin - author - title or amazon - author - title Thanks in advance ![]() |
![]() |
![]() |
![]() |
#2 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,950
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
{ISBN} is the only current template for assigned identifiers
You can use a custom column value template or 'Program Mode' (see the Calibre template Help page) for complex or unique situations. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,366
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Try
Code:
{identifiers:select(asin)|| - }{author} - {title} Last edited by chaley; 11-10-2014 at 12:53 PM. |
![]() |
![]() |
![]() |
#4 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Oct 2014
Device: none
|
Thanks Guys
This is how I did it per your instructions:
Created Custom column with {identifiers:select(amazon)} so now I can see the books with amazon numbering in a column next to ISBN column ![]() Created this template in saving to disk preferences {identifiers:select(amazon)} - {authors} - {title} This did it books are saved with (amazon - author - title) filename. I wonder, could I use two identifiers at the same time (something like if one is empty use the other)? This program never misses to amaze me. I love Calibre, it has saved me hours in book archival. |
![]() |
![]() |
![]() |
#5 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,366
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Something like
Code:
{identifiers:'ifempty(select($, 'asin'), select($, 'isbn'))'} To help you be able to do this yourself in the future, the above is an expression in Template Program Mode. Here is the documentation for the ifempty function and the documentation for the select function. All of the function documentation is here. |
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Saving to disk | guaranis | Library Management | 2 | 08-05-2014 05:44 AM |
Save to disk generate wrong filename | abuck | Conversion | 2 | 10-14-2013 01:00 AM |
Losing files when saving saving to disk | theaccountant | Library Management | 4 | 03-10-2011 02:38 PM |
MetaData from FileName and Saving Templates | ThemStones | Calibre | 2 | 12-05-2009 09:17 AM |
Saving to disk | htaylor | Calibre | 2 | 01-04-2009 08:29 PM |