Quote:
Originally Posted by BetterRed
The clipboard data being pasted into calibre metadata must have been put there by the calibre copy metadata tool; with nothing in between such as a text editor or a clipboard extender. Why, because it's highly structured data in a format that is specific to calibre; text editors, clipboard extenders etc have editing features.
|
That reply set me on the right track, thanks!
I actually got it working by reproducing the XML structure of the copied metadata and changing the MIME data to 'application/calibre-book-metadata'. I was able to easily do this in Python (with PyQt6) and it should also be doable in JavaScript (Clipboard API) and other languages as well.