Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 11-10-2014, 10:00 AM   #1
freemann
Junior Member
freemann began at the beginning.
 
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
freemann is offline   Reply With Quote
Old 11-10-2014, 12:09 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
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.
theducks is offline   Reply With Quote
Advert
Old 11-10-2014, 12:51 PM   #3
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,366
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Try
Code:
{identifiers:select(asin)|| - }{author} - {title}
You can replace "asin" with the name of any identifier as seen in the tag browser.

Last edited by chaley; 11-10-2014 at 12:53 PM.
chaley is offline   Reply With Quote
Old 11-10-2014, 01:17 PM   #4
freemann
Junior Member
freemann began at the beginning.
 
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.
freemann is offline   Reply With Quote
Old 11-10-2014, 02:36 PM   #5
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
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'))'}
should work, where you change the identifier names to be what you want. The first named identifier (asin above) takes precedence over the second (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.
chaley is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 06:52 PM.


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