![]() |
#1 |
Enthusiast
![]() Posts: 26
Karma: 10
Join Date: Dec 2012
Device: none
|
CatalogPlugin and the UI
Hello,
I'm writing, to experiment, a Calibre Plugin. It's a CatalogPlugin and I can see the output and work as expected if I use "calibredb catalog test.html" But I'd expect to see the format output in the Calibre UI in the "Generate catalog" UI... I'm testing with this file: http://pastebin.com/m2LnDMDa and then "calibre-customize -b .". I use calibre 2.5 on a Debian testing. Am I missing something in order to see my plugin on the UI? I'll keep investigating but it's getting a bit late here and maybe there is a Calibre bug preventing the plugin to be listed there. Thank you for the amazing software! |
![]() |
![]() |
![]() |
#2 |
Enthusiast
![]() Posts: 26
Karma: 10
Join Date: Dec 2012
Device: none
|
Im the original poster, I think that the problem is in the file src/calibre/gui2/dialogs/catalog.py - if the plugin is an external one AND doesn't have a UI it will never execute the line such as:
[self.fmts.append([file_type.upper(), pw.sync_enabled,pw]) for file_type in plugin.file_types] (or similar) so the new plugin format is never in self.fmts list. Tomorrow I'll have another look... Thank you! |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,198
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Indeed, for a catalog plugin to appear in the UI, you must give it a UI of it's own that calibre can display.
|
![]() |
![]() |