View Single Post
Old 07-27-2015, 03:52 AM   #37
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,356
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Dhevi View Post
@Chaley: You were spot on! After connecting as a wireless device the books were then properly sorted. Thus shears to be needed after every cloud download. Which is peculiar, the metadata.db file in googledrive and in calibre should be identical.
They are. The problem arises because I made a mistake in CC when extracting the series_sort metadata from the db. The series_sort value is an odd duck. It isn't in the database. Instead calibre computes it on demand using a rather complex system of article detection. CC cannot do that calculation, and my work-around was incorrect. It now works better.

It is worth noting that if all of the following are true:
  • you download a book using the cloud connection
  • that book has a series beginning with an article calibre would match (the, a, ...), for example "The Magician"
  • no other book with that series is already in CC
then CC will sort the series with the article in the front (for the example, in the "T"s). If subsequently you connect as a wireless device, calibre (via CC) will change the sort so that the article is moved to the end, changing where the series appears in the sort (for the example, to the "M"s). This problem (if it is a problem) can be avoided by setting the tweak save_template_title_series_sorting to strictly_alphabetic, but that might have side effects if you use other devices.

Quote:
A new issue has reared it's head.

I briefly received a message about "1 new book located" and after calibre was done connecting wirelessly there was a new "book" in my library.
This was caused by the failed download. I created the book file to receive the download but didn't delete it when the download failed.

There are several significant bug fixes queued up so I am going to make a release. It should be offered to you (and to @Agama) in the normal way by the Play store.
chaley is offline   Reply With Quote