Thanks, and it's a good start -- Since Calibre already has "On Device" and "In Library" tags, I would have hoped it would be relatively straightforward to Delete if InLibrary=N and Copy if OnDevice=N. I suspect the implementation somehow complicates matters in a way that is not immediately obvious, but if anyone knows of a plugin that handles something similar, I'd be very interested in hearing about it!
|