01-30-2024, 04:21 AM | #16 | |
Calibre Plugins Developer
Posts: 4,678
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Quote:
While it is true I wrote the original Plugin Updater standalone plugin, most of which still exists in calibre, a very key part of this process was (quite appropriately) changed by Kovid. Which is that half hourly scraping of the forum index to the separate plugins website you mention. That part is "voodoo" to me - it was written by Kovid, I've never seen it and is also I believe what is responsible right now for whatever reasons rejecting those three plugins which I had added entries for in the forum index page. I vaguely recall being told that Kovid's process downloads the zip files from the threads and presumably parses the files to use metadata inside them to determine things like plugin name, current version, dependent version etc. So the most obvious cause of problems is "going off script" with the plugin implementation and doing things at runtime - such as aliases, composing plugin name dynamically etc. Yes the plugin will "load" correctly when run, but my guess is that Kovid's parsing of the zips would have some fairly tight constraints about what it expects to find inside to pull out the metadata it needs. This is all speculation based on how I think it would work - without actually ever seeing the code that does it My advice to 0x6f677548 via PM was to just copy the approach from one of the other plugins that does appear in the index for each plugin type - don't go off script with them, keep things simple, name the plugins uniquely etc... |
|
01-30-2024, 04:42 AM | #17 |
creator of calibre
Posts: 44,409
Karma: 23977332
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The code to generate the plugins index is part of calibre
https://github.com/kovidgoyal/calibr...gins_mirror.py And yes it parses the plugin python file and yes there are various limitations if you try to generate metadata dynamically. Best to be as static as possible with plugin name, version, minim calibre requirement etc. |
Advert | |
|
01-30-2024, 07:45 AM | #18 |
Member
Posts: 20
Karma: 10
Join Date: Jan 2024
Device: kobo clara hd
|
I changed common to avoid runtime metadata generation, and the issue is solved!
Thank you all so much for the wonderful collaboration! |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Metadata Source plugins] Calibre internal plugins fail | igorius | Plugins | 1 | 05-28-2023 11:42 AM |
Systemwide installation of plugins / Discovery of installed plugins via pkg_resources | t-8ch | Development | 8 | 11-14-2020 09:25 AM |
Huffington Post - The New Vanity Publishing : Traditional Publishing | fjtorres | General Discussions | 2 | 08-26-2012 08:48 AM |
Independent ebook publishing vs traditional publishing | kennyc | Writers' Corner | 5 | 03-17-2011 09:35 AM |