Improve handling of kobo Date Added during sync
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
calibre |
Triaged
|
Undecided
|
David Forrester |
Bug Description
When using calibre to add books and synchronize metadata to a kobo device like Kobo Aura or Kobo Aura HD, it would be helpful if there was an option to map a calibre field such as Date or Published to the Kobo Date Added field. This would allow for better sorting of the items on the Kobo, so that sorting by Date Added would display the most recent books added first.
While this kind of works today if the books are added in small batches, this does not work if books are added in large batches as they will all have essentially the same Date Added. Additionally, since the Date fields in Calibre can be edited, this would allow for the Date Added field in Kobo to be modifiable by a user.
I suspect this should be a fairly simple change as it would just be a matter of adding the GUI and preference to set up the mapping and option (is this feature enabled, which Calibre field is used to map to the kobo field) , and then just updating some SQL when modifying the kobo SQLLite database.
I'm not an expert with the code, but I suspect the field in question is DateCreated in the content table in database .kobo/KoboReade r.sqlite . I think that a function like set_readstatus with some modifications could be used to do the work required in calibre. devices. kobo.driver using the update to set DateCreated instead of using the value chosen by the kobo when the book is copied via USB.