Adding new books to the library
Dear Developers,
I am currently working on a plugin to enable cloud synchronization for Calibre. So far, I've got it doing simple things, such as downloading a catalog from a remote server, comparing it to the local database, merging records, and then pushing updates back to the remote server.
While working on it, though, I've found that I don't quite understand the database interface. What is the best way for a plugin to add new books to the database? Is there anywhere that I can find code examples or is it covered in the developer documentation?
Likewise, how can I retrieve the URLs for different formats of the book that are installed? Since I've got metadata sync (mostly) working, the next thing I'd like to do is file synchronization.
Any pointers would be extremely appreciated.
Cheers,
Rob Oakes
|