View Single Post
Old 09-01-2013, 07:23 AM   #494
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,731
Karma: 2197770
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
@ottischwenk - I don't understand how this can be possible after restarting calibre. Unless you are somehow running the plugin in an unconventional way, or it is erroring somewhere else?

You are seeing the Modify ePub popup dialog with all the checkboxes, including the one for "Append extra CSS" right? You don't have to have it checked, it just needs to be present on that dialog. As soon as you click "OK" the plugin will look at all the checkboxes and update a dictionary it keeps for each option recording whether it is checked or not. That error you and mob are reporting are from where it cannot find an entry in that dictionary for the "append_extra_css" option.

You can see the entries yourself by going to calibre ->Miscellaneous->Open calibre configuration directory, open the gui.json file in Notepad and search for "modify epub plugin" and you should see a bunch of things like "add_replace_jacket": true along with "append_extra_css": false. Or at least I do when I try to replicate this issue.

Is anyone else having the same problem - or are they having Modify ePub behave normally without errors (without even trying the Append Extra CSS option)?

It is a relatively easy fix to make to the plugin to workaround it, but I am concerned that it just shouldn't be happening in the first place for users who have updated the plugin and restarted calibre. And I don't like things that I can't understand why...
kiwidude is offline   Reply With Quote