Skip to content

Commit e5f8e5b

Browse files
committed
Built-in Event For Action Chains plugin
1 parent 11d8fae commit e5f8e5b

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

calibre-plugin/action_chains.py

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
from __future__ import (unicode_literals, division, absolute_import,
2+
print_function)
3+
4+
__license__ = 'GPL v3'
5+
__copyright__ = '2024, Jim Miller'
6+
__docformat__ = 'restructuredtext en'
7+
8+
## References:
9+
## https://www.mobileread.com/forums/showthread.php?p=4435205&postcount=65
10+
## https://www.mobileread.com/forums/showthread.php?p=4102834&postcount=389
11+
12+
from calibre_plugins.action_chains.events import ChainEvent
13+
14+
class FanFicFareDownloadFinished(ChainEvent):
15+
16+
# replace with the name of your event
17+
name = 'FanFicFare Download Finished'
18+
19+
def get_event_signal(self):
20+
return self.gui.iactions['FanFicFare'].download_finished_signal

0 commit comments

Comments
 (0)