View Single Post
Old 09-20-2014, 07:58 AM   #6
plugin_dev
Junior Member
plugin_dev began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Sep 2014
Location: Edinburgh
Device: Kindle
Thanks for the prompt reply, again. I don't know how you have the patience.

Adding the missing "self" does not resolve the problem though, sadly:

Xlib: extension "GLX" missing on display ":0.0".
Code:
Could not initialize OpenGL for RasterGLSurface, reverting to RasterSurface.
Worker Launch took: 0.129006147385
Job: 1 Read metadata (0 of 1) finished
Read metadata (0 of 1)
	RatingReset::loaded
	RatingReset::run(/home/skx/tmp/tmp.epub)
Again the run method is called, but the postimport is not:

Code:
    def run(self, path_to_ebook):
        print "RatingReset::run(%s)" % path_to_ebook
        return path_to_ebook

    def postimport(self, book_id, book_format, db):
        print "RatingReset::postimport()"
        db.new_api.set_field('rating', {book_id:0})
plugin_dev is offline   Reply With Quote