I have managed to add simple support for device collections which seems to work okay for manual editing. It still needs some work and I will probably wait till you merge the new metadata/json code and rework it then.
I did notice a couple of things:
It seems that device_collections needs to be added to the JSON_ATTRIBUTES in usbms/books.py or the collection is not written to metadata.calibre
There maybe a bug in the current driver that will cause a failure if a new Kobo is used with Calibre (I need to retest to be sure).
rebuild_collections receives the entire booklist when a device collection is changed. In the case of the Kobo, that leads me to reset and recreate the the I'm Reading list everytime one collection is changed. It does not take long and I may be able to query the device for the collections and only reset the ones that are no longer on the list but that may well be slower.
I have not looked at the on send setting and automatic settings. Do they still call rebuild_collections?
Tim
|