View Single Post
Old 02-25-2012, 05:02 AM   #17
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: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by ilovejedd View Post
Thanks! The not removing the book from the collection only applies to Manual mode, right? If I choose "Only on send" it should also remove the book from obsolete collections.
I was confused and didn't explain things correctly. Looking at the code, I see:

-- manual management: Merge collections when a book is newly put on the device. Otherwise do nothing (leave the collections as they are).

-- on send: Replace collections when a book is newly put on the device. Otherwise do nothing (leave the collections as they are).

-- automatic management: Replace collections whenever the device is connected.

Thus, in manual or on-send modes, resending a book that is already there should do nothing to collections.

Quote:
Hmm, will have to check how Calibre handles the various metadata management options and see if I might be able to add an option to just send metadata for Kinoma-based Sony Readers. I'm no good at writing my own code but I can generally figure out how to splice stuff together.
Calibre wasn't designed to do different things based on reader sub-types. It probably can be done, but you will need to touch a few places. In particular (and probably), devices.prs505.driver to detect the device sub-type somehow and store that information somewhere, devices.usbms.books.get_collections to use that information and select the right collections mode when building the collections list, and gui2.devices to use that information to send the collections to the device. You may also need to touch devices.prs505.sony_cache.
chaley is offline   Reply With Quote