View Single Post
Old 06-13-2011, 09:04 AM   #70
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,509
Karma: 8065348
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Another thing to try is to call
Code:
self.device_manager.get_device_information(FunctionDispatcher(self.info_read))
instead of device_manager.books. This is better in any event, because it will update the device free space values. It is also the sequence that calibre uses.

I am a bit concerned about using Dispatcher to call metadata_read. This permits more jobs to start and your plugin to go ahead and do whatever before the GUI booklists are updated. This creates race conditions in updating the booklists and ondevice. I think you should use FunctionDispatcher there.
chaley is offline   Reply With Quote