Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Development

Notices

Reply
 
Thread Tools Search this Thread
Old 01-18-2015, 05:59 PM   #1
cpina
Enthusiast
cpina began at the beginning.
 
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!
cpina is offline   Reply With Quote
Old 01-18-2015, 07:31 PM   #2
cpina
Enthusiast
cpina began at the beginning.
 
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!
cpina is offline   Reply With Quote
Advert
Old 01-18-2015, 09:52 PM   #3
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump


All times are GMT -4. The time now is 05:56 PM.


MobileRead.com is a privately owned, operated and funded community.