Quote:
Originally Posted by dwanthny
|
This is all about file type and metadata plugins, but nothing about devices.
I tried to install my plugin:
Code:
$ calibre-customize -a PB302.zip
Traceback (most recent call last):
File "/usr/bin/calibre-customize", line 16, in <module>
sys.exit(main())
File "/usr/lib/calibre/calibre/customize/ui.py", line 396, in main
plugin = add_plugin(opts.add_plugin)
File "/usr/lib/calibre/calibre/customize/ui.py", line 235, in add_plugin
plugin = load_plugin(path_to_zip_file)
File "/usr/lib/calibre/calibre/customize/ui.py", line 74, in load_plugin
raise InvalidPlugin(_('No valid plugin found in ')+path_to_zip_file)
calibre.customize.ui.InvalidPlugin
I'm not sure if device plugins can be installed like this, because they are not base on calibre.customize.
I managed to get my plugin working, by adding it in calibre/customize/builtin.py but that does not seem to be the best way.