Or, if you use calibre just rename your script mobidedrm_plugin.py, zip it, load mobidedrm_plugin.zip as a calibre plugin, go to plugin settings and enter your PID(s), and from then on the script will do its thing automagically whenever you add a new book to calibre.
|