View Single Post
Old 12-31-2011, 10:26 PM   #315
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 7,003
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by kiwidude View Post
@JimmXinu - give the attached version a whirl and let me know if you need any other changes. I'll officially release it when it does what you need.
Wow, that's impressively quick, thanks!

And it works (when I call them from the foreground thread, see below).

Some other details that would help if you have time and inclination:
  • Expose a method to call cfg.get_book_list(list_name).
  • Expose a method to call cfg.list_names(). Seems to me that providing a facade to these two from ReadingListAction would be much cleaner than trying to dig down to them.
  • Ability to pass a flag to suppress the 'selected book(s) already/do not exist' confirmations on add/remove. (Calibre crashes when it tries to pop those from my background thread. Perhaps I'm doing the BG thread wrong, but it would still be nice to hide those.) Failing that, if I can call a get_book_list(list_name) method, I can avoid bogus adds/dels up front.
I really appreciate your help, thanks.

Jim
JimmXinu is offline   Reply With Quote