View Single Post
Old 12-30-2020, 11:40 AM   #23
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,475
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by chris33 View Post
Code:
self.gui.current_db.new_api.set_cover({searchId, mi.cover_data[1]})
I can't speak to most of your problems, but you are passing the wrong parameter to set_cover. It should be a dict, not a set. Something like
Code:
{ book_id: cover_data }
where cover_data is one of a QImage, QPixmap, file object or bytestring.
chaley is offline   Reply With Quote