theducks: Yes, thanks for trying. The indent in python still catches me occasionally. I still keep looking for the brackets or something to contain the code blocks.
Now the boilerplate:
FYI, I am not kiwidude and this isn't my plugin. But I'm trying to help out by porting some of the plugins I use regularly while kiwidude is busy.
Attached is a test version that should work for both the existing 1.X calibre and the upcoming 2.X version calibre. 2.x will use PyQt5 which requires changes to virtually all plugins. It has version 1.201.0 to distinguish it from the released version.
This version needs to be tested with the existing calibre.
Brave souls to test with with the beta 2.X version would also be appreciated. Links to the 2.X beta and discussion of the transition (for plugins) can be see at:
Attn plugin developers: calibre moving to Qt 5.