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.
|