View Single Post
Old 07-21-2025, 02:43 AM   #4
jsky
Member
jsky began at the beginning.
 
jsky's Avatar
 
Posts: 13
Karma: 10
Join Date: May 2025
Device: kindle
Quote:
Originally Posted by kovidgoyal View Post
Look at the functions in

calibre.customize.ui

they give you access to all types of calibre plugins.
Thank you!Calibre MASTER

and still a little problem --

I am writing a InterfaceAction plugin, in which I want to call a Source plugin function.
Now i have the source plugin instance
Code:
from calibre.customize.ui import find_plugin
plugin = find_plugin("plugin_name")
But the function I want to Call is
Code:
    def identify(
            self,
            log,
            result_queue,
            abort,
            title=None,
            authors=None,  # {{{
            identifiers={},
            timeout=30)
However, I'm not sure how to pass the "log" parameter, as it seems like it's coming from outside the function. How can I pass this parameter correctly?
jsky is offline   Reply With Quote