Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Action Chains integration #1073

Closed
tklimt opened this issue May 25, 2024 · 5 comments
Closed

[Feature Request] Action Chains integration #1073

tklimt opened this issue May 25, 2024 · 5 comments

Comments

@tklimt
Copy link

tklimt commented May 25, 2024

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

@JimmXinu
Copy link
Owner

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.

@tklimt
Copy link
Author

tklimt commented May 28, 2024 via email

@JimmXinu
Copy link
Owner

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!'.

@tklimt
Copy link
Author

tklimt commented May 29, 2024 via email

@tklimt
Copy link
Author

tklimt commented Jun 5, 2024 via email

@JimmXinu JimmXinu closed this as completed Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants