View Single Post
Old 01-07-2020, 07:00 PM   #8
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,174
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
Quote:
Originally Posted by davidfor View Post
Not sure what you mean here. Calibre has options about what to do with duplicate books, but they only used when adding the book to the library. And maybe when you rename a book. Nothing is done when sending a book to a device.





The problem is probably in the save template you use in the driver. it is probably producing the same file name for both books in the pair. When they are sent to the device, the second one replaces the first one. Hence, only one book there when you disconnect.



The default save template looks like:



Code:
{author_sort}/{title} - {authors}


You could change this to include whatever is elsewhere in the metadata of the books that make them unique. For example, to use the publisher, the save template could be:



Code:
{author_sort}/{title} - {publisher} - {authors}


That only affects the file name on the device. The title and author will still be shown as whatever is in the library. The publisher should be seen in the details of the book. If you want to see the publisher in the library list, you can use a metadata plugboard to set the title when sending the book to the device. This could be:



Code:
{title} - {publisher}


Unfortunately, that would put the publisher at the end of the title of all books, not just the books with multiple editions. Another way, would be to use the subtitle field on the device. This is done via the driver configuration. On the "Metadata, on device & advanced" tab, make sure that "Update metadata on the device" is checked, then check the "Subtitle" option. The template field will be enabled. In this field put:



Code:
{publisher}


And press the OK button to save the changes.



With these options, the driver will update the metadata in the database on a Kobo device each time it is connected. Unfortunately, it cannot do this when you first send the book to the device. You need to disconnect the device, let it import the new books and then reconnect it. Calibre will do the metadata updates and when you disconnect it, the publisher will be shown in the list for each book. It will be shown like:



Code:
Book title

Publisher

SERIES NAME 1

Author


Again, the publisher will be shown for all books. Not ideal, but, personally I'd prefer it to having the publisher in the title.



Both of those are examples of what could be done. Exactly what the best thing to use is up to you. Maybe the publisher plus the published date for the book might be better.
I wonder if you could add the book's I'd number from calibre to the template?
PeterT is offline   Reply With Quote