View Single Post
Old 01-15-2017, 06:08 AM   #9
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Eidfjord View Post
I am not exactly sure what you mean. The duplicate error pops up when I add the book(s) in Calibre. And when I then "send to device" Calibre sends just one of them, since they somehow have the same name. I changed the filenames on my computer after downloading and before "adding" into Calibre, but this didn't help.
That all means that everything is working as designed, and that Kovid's first reply was the solution.

The duplicate error was because you added a book to calibre which matched to an existing book. The options then are to merge the books, or add a duplicate - same title and author as an existing book.

When you send the book to the device, the "save template" is used to generate the path and file name. The default for this is something like:

Code:
{author_sort}/{title} - {authors}
That means that a directory will be created with the authors name in the format "LN, FN". The book will be put inside with a file name of the title followed by the authors names. So, for an epub version of Stephen Kings, "The Stand", the path will be:

Code:
King, Stephen\Stand, The - Stephen King.epub
If I had duplicate copies of this book in the library, sending both to the device would generate the same name, and the second one I sent would replace the first.

To avoid this, you need to either change template to generate a different file name, or change the metadata. Kovid's suggestion for changing the save template was something like:

Code:
{author_sort}/{title} - {authors}-{id}
That adds an integer into the file name. The integer is a unique identifier for the book in the calibre library.

The alternative is to change either the title or the author. From you first post, the books aren't actually the same, so adding something like "Volume 1", "Volume 2" and "Volume 3" to the title once the books are in the calibre library would solve the problem.

If you decide to change the save template, it needs to be change in one of two places:
  • The default is on the "Sending books to devices" page of the preferences. This will be used for all devices if the device configuration hasn't been changed.
  • The other place is in the driver configuration. If you change anything here, it copies the default save template and saves it with the rest of the driver configuration. For the Kobo devices, this is the KoboTouch driver. You can find it in the Plugins page of the preferences, or by right clicking on the device button when the device is connected.
davidfor is offline   Reply With Quote