View Single Post
Old 10-08-2011, 12:46 PM   #65
Kolenka
<Insert Wit Here>
Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.
 
Kolenka's Avatar
 
Posts: 1,017
Karma: 1275899
Join Date: Jan 2008
Location: Puget Sound
Device: Kindle Oasis, Kobo Forma
Quote:
Originally Posted by log View Post
If you have a epub with multiple authors delimited by ampersand (&) in calibre, it gets loaded by firmware filesystem scanner as you mentioned, with only the first author listed on the main book view. Interesting thing is if you open book, and go Menu -> More -> Setting -> Info, it shows all the authors, this time delimited by comma (,). I did check my books table, and there is single row for the book, and only the first author listed. My guess is on info screen it actually reads epub metadata.
That's correct. The Sony scanning routine only stores the first author in the database, but can read the rest from the ePub if you get info on it. My driver is trying to mimic Sony's behavior as much as possible, so it only stores the first author in the database.

Quote:
Originally Posted by log View Post
This book correctly is detected as being in my library in current calibre beta also, so maybe there is some other variables besides the authors exact match that is causing your book to not be detected properly in calibre library as being on the device?
The current beta reads the metadata from the ePub directly. The driver I wrote reads from the database for speed. The intent is to avoid querying multiple locations for data if at all possible. But, that means only the metadata in the database can be used for matching. The USBMS driver relies on more metadata inside the ePub itself (UUID/ISBN for example), which is more reliable on producing matches. But, that information isn't stored in books.db.

I know the problem, but as I said, I don't know how best to tackle it. It seems kinda wasteful to have to pop open each ePub to read information, but it might be unavoidable. Maybe it needs to be an option that people can turn off if it gets too slow for them.

Also keep in mind that the cover image used for the sleep display is pulled from the first page of the book. Even if a different thumbnail is used. So Calibre won't be able to make your sleep screen look any better if the ePub needs tweaks to get a decent cover.
Kolenka is offline   Reply With Quote