View Single Post
Old 07-18-2021, 06:27 PM   #2577
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,509
Karma: 8065348
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by BetterRed View Post
Yep - the plugin index was simplified in Nov 2020. However the Updater has sourced the version number, author etc from the plugin's __init__,py modules for much longer than that, sample attached.

BR
Reading the source, it appears that the updater looks at __init__.py for the reference to a plugin base class. If it doesn't find it then then it looks at the imports. Once it finds a class that inherits from a plugin base class then it looks in that class for the author/version info.

My problem is that I can't actually see what the updater generates so I am not sure of my assertions.

Last edited by chaley; 07-18-2021 at 06:35 PM. Reason: simplification
chaley is offline   Reply With Quote