From e5f8e5bba4fe3a3fa03ca47ec052cecac73bfb32 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Mon, 1 Jul 2024 15:14:37 -0500 Subject: [PATCH] Built-in Event For Action Chains plugin --- calibre-plugin/action_chains.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 calibre-plugin/action_chains.py diff --git a/calibre-plugin/action_chains.py b/calibre-plugin/action_chains.py new file mode 100644 index 00000000..e9e279a2 --- /dev/null +++ b/calibre-plugin/action_chains.py @@ -0,0 +1,20 @@ +from __future__ import (unicode_literals, division, absolute_import, + print_function) + +__license__ = 'GPL v3' +__copyright__ = '2024, Jim Miller' +__docformat__ = 'restructuredtext en' + +## References: +## https://www.mobileread.com/forums/showthread.php?p=4435205&postcount=65 +## https://www.mobileread.com/forums/showthread.php?p=4102834&postcount=389 + +from calibre_plugins.action_chains.events import ChainEvent + +class FanFicFareDownloadFinished(ChainEvent): + + # replace with the name of your event + name = 'FanFicFare Download Finished' + + def get_event_signal(self): + return self.gui.iactions['FanFicFare'].download_finished_signal