View Single Post
Old 04-04-2021, 01:44 AM   #12
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
Looking at the code you posted, you are using print statements rather than writing to the log. The log is a parameter of the identify method. Writing anything to that will appear in the log that calibre displays.

And I cannot install the version you posted after removing the extra imports. The problem is the __init__ does not have the correct parameters. And there is no call to the parent class to initialize it. It isn't really needed. You should set those properties at the class level, or as constants.
davidfor is offline   Reply With Quote