View Single Post
Old 05-23-2017, 12:02 AM   #4
Barafu
Junior Member
Barafu began at the beginning.
 
Posts: 7
Karma: 10
Join Date: May 2014
Device: many
Yes, I have seen them and got the basics, thanks. Let me clarify my question. I do the search and get the results, but there are no direct download links. Instead I have to decode data myself to retrieve a book file.
  • I have to do the downloading in the open() method of my plugin because there is no way to provide a customized method to download a book. Right?
  • After I unpack a book file and have it in temporary location, how do I add it to Calibre database? I could use a system call to use Calibre CLI to do it, I think, but I hope there is an API function for this.
  • Finally, can I use Calibre API in my plugin to read metadata from that file prior to adding it to Calibre? I need to check that it is actually the book that was asked for, because the result really could be wrong.
Barafu is offline   Reply With Quote