View Single Post
Old 05-06-2020, 11:27 PM   #11
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 DrChiper View Post
I did already use a modified save driver template in which language is a part:

Code:
{author_sort:list_item(0,&)}/{authors:list_item(0,&)} - {series} {series_index:0>2s} {title:'raw_field('title')'} ({pubdate}) [{languages}]

I'm not sure to which function you refer of the driver. (At least I cannot find it ) Can you elaborate?

BRAINWAVE:
I think I grasp the problem:
I have 2 databases, 1 for English books and 1 for German books.
And calibre book IDs are per database unique, I suspect. So in my situation it will never work.
Hmm.
Rereading the question, I can see the problem. The issue is that calibre does use the metadata.calibre file to match the book. But, the entries in it are based on the last library used when connected to the device. When you change library, the matching is done on the book metadata, more than the metadata.calibre. Because of that, the book does match what you have on the device. In that case, it is matching based on the author and title. And what Kovid suggested would show this.

I'm not sure if there is any way to handle this. You can send the second edition. With the save template you are using, it would add the book. And when you connected to calibre again, whichever library you were using would show two copies of the book on the device.

I do see it, as I have some common books for testing in multiple libraries. In my case, the books are supposed to be the same, so it doesn't matter which library they came from.
davidfor is offline   Reply With Quote