View Single Post
Old 03-29-2010, 06:29 AM   #3
reader42
Zealot
reader42 knows what time it isreader42 knows what time it isreader42 knows what time it isreader42 knows what time it isreader42 knows what time it isreader42 knows what time it isreader42 knows what time it isreader42 knows what time it isreader42 knows what time it isreader42 knows what time it isreader42 knows what time it is
 
Posts: 117
Karma: 2097
Join Date: Feb 2010
Device: none
Quote:
Originally Posted by dwanthny View Post
The Calibre manual is a good place to start, try this section.
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.
reader42 is offline   Reply With Quote