Just doing some experiment but i get a little confused from this:
Code:
from calibre.devices.mtp.driver import MTP_DEVICE
class MYSYNC(MTP_DEVICE):
name = 'Android Sync' # Name of the plugin
description = 'bla bla bla'
supported_platforms = ['windows', 'linux'] # Platforms this plugin will run on
author = 'dontlookhere' # The author of this plugin
version = (0, 1, 0) # The version number of this plugin
minimum_calibre_version = (0, 7, 53)
This is the little code. I try to make a plugin that extend mtp for my device. I don't know is is possible but if i try to load the plugin:
calibre-customize -b mine/
I get this error:
Code:
Traceback (most recent call last):
File "/usr/bin/calibre-customize", line 20, in <module>
sys.exit(main())
File "/usr/lib/calibre/calibre/customize/ui.py", line 662, in main
build_plugin(opts.build_plugin)
File "/usr/lib/calibre/calibre/customize/ui.py", line 624, in build_plugin
plugin = add_plugin(t.name)
File "/usr/lib/calibre/calibre/customize/ui.py", line 382, in add_plugin
'A builtin plugin with the name %r already exists' % plugin.name)
calibre.customize.ui.NameConflict: A builtin plugin with the name u'MTP Device Interface' already exists
I'm doing something wrong ? I have my ""luck"" has found a bug?