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-30-2024, 04:21 AM   #16
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,637
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
Quote:
Originally Posted by BetterRed View Post
Kiwidude is the 'owner of the calibre plugin process'…i.e. it's his baby.
Stitching me up there BetterRed

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...
kiwidude is offline   Reply With Quote
Old 01-30-2024, 04:42 AM   #17
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: 43,860
Karma: 22666666
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.
kovidgoyal is offline   Reply With Quote
Advert
Old 01-30-2024, 07:45 AM   #18
0x6f677548
Member
0x6f677548 began at the beginning.
 
0x6f677548's Avatar
 
Posts: 19
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!
0x6f677548 is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 07:35 PM.


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