Calibre doesn't support simultaneous access of the DB by calibre and anything else. You can easily get into trouble, because calibre's cache will not reflect the DB contents.
I suggest you create a second library, and leave it empty. Switch to that library before you run your scripts, then switch back. That will both avoid the data integrity problems and refresh the caches.
|