View Single Post
Old 04-10-2015, 09:26 AM   #18
goge
Member
goge began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Mar 2015
Device: android phone
Hi,

I added the endpoints to import a book into the db from an isbn number and that is running fine

I am now looking into how to get the metadata for the book.

https://github.com/kovidgoyal/calibr...lk_download.py
So far, following the metadata download in the above gui action I follow the action through a threaded worker job to:
https://github.com/kovidgoyal/calibr...rces/worker.py

It seems to write the metadata out to the file system and the job that calls it reads the metadata out of the filesystem. Am I understanding this correctly?

Is there a synchronous way import meta data?
I'd rather not duplicate the business logic in bulk_download.py -> download.
download doesn't seem to use the gui.

Can I use the bulk_download.py -> download from within the LibraryServer?
Async backend would work well if we had some real time web component but from what I understand cherry py doesn't have a good implementation for it. I could just poll on the client.

Thanks!
goge is offline   Reply With Quote