View Single Post
Old 03-08-2020, 10:06 PM   #2
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
You might want to look at the Reading List plugin. You can create a reading list will automatically send the books in it to a device when it is connected. It is probably doing what you want.

If it is not what you want, you probably don't want to use "upload_books" (can't find "upload_book"). You should be doing it using the database ids of the books. The Reading List plugin does this in the "_sync_list" method in action.py. And following those calls, will take you to where upload_books is actually called.
davidfor is offline   Reply With Quote