JimmXinu / FanFicFare

FanFicFare is a tool for making eBooks from stories on fanfiction and other web sites.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature Request] Action Chains integration

tklimt opened this issue · comments

Hello,
it would be really great, if you could add an option to start the calibre plugin "Action Chains" for the downloaded or updated books.
This would automate task I perform after downloading

This appears to be possible.

I've started a discussion over on the MobileRead FFF plugin thread about the details. I know there are some Action Chains users over there.

I've posted a test version of the plugin in the usual place.

The FFF plugin has a signal it will emit after the "proceed with updating your library" dialog.

The code for the Action Chains Module I tested with is:

from calibre_plugins.action_chains.events import ChainEvent

class SearchChanged(ChainEvent):

    # replace with the name of your event
    name = 'FFF done'

    def get_event_signal(self):
        return self.gui.iactions['FanFicFare'].download_finished_signal

All I've done with it is call a chain that printed 'HERE!'.