I'm toying with an idea for a new plugin and could use some advice.
When I decide I don't want to read a particular ebook after all, I delete it from the calibre library. So I end up with books on my devices that I don't want anymore. Less frequently, the same book on a device will end up on the device more than once.
While it's easy enough to find dups and deleted books manually, I frequently forget to check before I eject the device.
So I was thinking of a plugin that when invoked would check for deleted books on device (search inlibrary:False) and duplicates (search ondevice:"(") and then alert me. Or eject the device if none are found.
Is there already a way to do this? I don't want to duplicate effort.
Also, I haven't figured out a way to do the "inlibrary:False" on search from code. Any advice? I expect I'll have to do it separately for memory_view, card_a_view and card_b_view.
Here's what I've found for the dup search:
And the eject:
Any better suggestions for those?
Thanks,
Jim