11-24-2020, 02:27 PM | #1 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jan 2013
Device: Nook, iPad, Audiobooks
|
Example plugin not working?
So I'm new to Python and the Calibre API (but not programming) and was trying to muddle my way through figuring both out by updating an old plugin for v5. Starting to think just redoing the pieces I need for now might be easier. To do this I was starting at the basics with the stuff at https://manual.calibre-ebook.com/creating_plugins.html but the very basic plugin that should update the publisher to "hello world" is not even working. It shows the plugin loaded but importing a new epub does not add the publisher when there is none in the original metadata or when there is a publisher on the book it loads the one on the epub. Since I'm trying to do a plugin that will be manipulating/adding metadata for m4b files this example looked like a good start. Can anyone give me an idea of why? Does it need to be updated for v5? TIA.
|
11-24-2020, 02:53 PM | #2 | ||
Bibliophagist
Posts: 35,617
Karma: 145557716
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Quote:
Last edited by DNSB; 11-24-2020 at 02:55 PM. |
||
11-24-2020, 03:03 PM | #3 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jan 2013
Device: Nook, iPad, Audiobooks
|
Yeah I noticed that after I posted it said during conversion so I tried a conversion and same deal no change unless I am looking in the wrong place. I also dropped a print statement in to see if it even reaches the line that should be setting this but the conversion just sits at "waiting" when in debug mode.
|
11-24-2020, 03:10 PM | #4 | |
Junior Member
Posts: 5
Karma: 10
Join Date: Jan 2013
Device: Nook, iPad, Audiobooks
|
Quote:
So now I need to figure out how I can do this same thing at import.. Thanks though this helps. |
|
11-24-2020, 03:29 PM | #5 | |
Bibliophagist
Posts: 35,617
Karma: 145557716
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Have fun. |
|
12-11-2020, 02:59 AM | #6 |
Junior Member
Posts: 7
Karma: 10
Join Date: Jan 2012
Device: none
|
Dear ElmoFuntz, I observed the same behavior. I'm trying to start API Programming but it seems that the examples and documentation do not reflect the new 5 th version. I installed that Hello World example an did convert one Book (yes and restarted calirbe, if this might be necessary). But there is not "Hello World" in any of the fields. I get stuck here and am searching for a good API documentation, examples. If you find some, let us know.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
calibre 2.0 ,findduplicate plugin not working. | yang738 | Plugins | 2 | 08-29-2014 09:43 AM |
De-DRM plugin not working | mlevin77 | Conversion | 1 | 06-02-2012 10:36 PM |
I09 plugin stopped working | phil_ga | Recipes | 2 | 02-18-2011 09:53 AM |