Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 10-01-2021, 12:45 PM   #736
ownedbycats
Wizard
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 3,192
Karma: 13656610
Join Date: Oct 2018
Device: Kobo Aura HD
Question: Is it possible for more than one level of submenuing? Menu/Submenu and Menu.Submenu just created a separate menu.
ownedbycats is offline   Reply With Quote
Old 10-01-2021, 01:23 PM   #737
capink
Guru
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 658
Karma: 211740
Join Date: Aug 2015
Device: Kindle
Yes. But you have to use ::: as a separator.

Code:
Menu:::submenu
capink is online now   Reply With Quote
Old 10-09-2021, 05:53 AM   #738
zaroz
Member
zaroz began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Oct 2020
Device: Samsung Galaxy Tab S6
Is it possible to execute other chains from within a different one? I have a bunch of chains for parsing tags to add specific values to custom columns. It would be nice to be able to chain them sequentially on a single keypress, rather than taking up a dozen keys.

Also, is it possible to export chain configs? It would be nice to be able to backup/share my builds?
zaroz is offline   Reply With Quote
Old 10-10-2021, 08:05 AM   #739
capink
Guru
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 658
Karma: 211740
Join Date: Aug 2015
Device: Kindle
Quote:
Originally Posted by zaroz View Post
Is it possible to execute other chains from within a different one? I have a bunch of chains for parsing tags to add specific values to custom columns. It would be nice to be able to chain them sequentially on a single keypress, rather than taking up a dozen keys.
Yes, it is possible. Check this post.

Quote:
Originally Posted by zaroz View Post
Also, is it possible to export chain configs? It would be nice to be able to backup/share my builds?
Action Chains > Add/Modify Chains > Select the chain(s) you want to export > right click > export.
capink is online now   Reply With Quote
Old 10-14-2021, 07:36 PM   #740
Hortensia
Enthusiast
Hortensia began at the beginning.
 
Posts: 27
Karma: 10
Join Date: Jul 2021
Device: Kindle Paperwhite
Using the Event Manager, is it possible to execute a chain after running the FanFicFare plugin?

I checked my Jobs list after running FanFicFare and it produces a download and a convert action. I think that if it could be checked that these two actions are executed, then it could trigger the chain execution.

I am trying to use capink's post on the module editor:
Quote:
Here is an example of how to add extra events using the plugin's module editor, you do it by returning the signal associated with the event.

Code:

from calibre_plugins.action_chains.events import ChainEvent

class SearchChanged(ChainEvent):

# replace with the name of your event
name = 'Search Changed'

def get_event_signal(self):
return self.gui.search.changed
Where can I find the events "book downloaded" and "book converted"? And should both events simply be listed one after the other instead of
Code:
return self.gui.search.changed
or is something need to say "and"?

Thank you!

EDIT:
The "Books Added" event works for this purpose. I had seen there was a wait time but I had not realised how long it was and I did not waited long enough for the action to be triggered.

Last edited by Hortensia; 10-16-2021 at 06:29 PM.
Hortensia is offline   Reply With Quote
Old 10-17-2021, 11:04 AM   #741
capink
Guru
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 658
Karma: 211740
Join Date: Aug 2015
Device: Kindle
Quote:
Originally Posted by Hortensia View Post
Using the Event Manager, is it possible to execute a chain after running the FanFicFare plugin?

I checked my Jobs list after running FanFicFare and it produces a download and a convert action. I think that if it could be checked that these two actions are executed, then it could trigger the chain execution.

I am trying to use capink's post on the module editor:


Where can I find the events "book downloaded" and "book converted"?
There are no "book downloaded" and "book converted" events. You will have to write these yourself. Events in Action Chains are based on pyqt signals, so unless FanFicFare plugin provides signals for these events (I don't think it does), you cannot write your event.


Quote:
Originally Posted by Hortensia View Post
And should both events simply be listed one after the other instead of
Code:
return self.gui.search.changed
or is something need to say "and"?
you should return only one signal per event. If you want the same event to be triggered in response to more than one signal, you have to create your own signal that is triggered by all the other signals, and return that signal in the get_event_signal() method.
capink is online now   Reply With Quote
Old 10-17-2021, 03:11 PM   #742
ownedbycats
Wizard
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 3,192
Karma: 13656610
Join Date: Oct 2018
Device: Kobo Aura HD
Quick question: Making a quick keyboard-shortcut chain to show a saved search (using a selection modifier) and sort by a certain column (Calibre action for sort by). But if I run it more than once it errors:

Code:
Menu entry: Last Read (plugin_name: Sort By) cannot be found
I'm not sure why this happens. Would this be better served by a module?

(I considered View Manager, but there's no option to just apply the sort and leave the columns alone.)

EDIT: This might be because the sort action changes to "Sort By > ColumnName [reverse current sort]" after you run it once. Seeing as I'd prefer to always have it sort descending, would this still be better with a module?
Attached Files
File Type: zip ApplySortTest.zip (526 Bytes, 37 views)

Last edited by ownedbycats; 10-18-2021 at 04:18 PM.
ownedbycats is offline   Reply With Quote
Old 10-21-2021, 11:57 AM   #743
Hortensia
Enthusiast
Hortensia began at the beginning.
 
Posts: 27
Karma: 10
Join Date: Jul 2021
Device: Kindle Paperwhite
Chain Caller starting next action before previous one is ended

Thanks capink for your previous answer.

I have a chain relying on the Chain caller which does the following:
  1. Select all my books
  2. Call a chain to clean my library from the books I already read
  3. Call a chain to prepare the new books to be sent to the Kindle
  4. Call a chain to send the books to the Kindle
  5. Call a chain to eject the device
The chain caller does not wait for the action 2 to be completed before starting action 3, nor does it wait for action 4 to be completed before starting action 5. However, it always wait for action 3 to be completed before starting action 4.

Does anyone know why this might be?

As a workaround, I added "Confirm" actions between the problematic actions to "manually wait". In the first case, I wait for the progress bar of action 2 to be completed (Action Chains progress bar) and in the second case, I wait for the Calibre Jobs to be completed.
Hortensia is offline   Reply With Quote
Old 10-23-2021, 03:54 AM   #744
capink
Guru
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 658
Karma: 211740
Join Date: Aug 2015
Device: Kindle
  • In chain no. (2): Go to the action that removes books, and tick the option: "Wait until any progress bar shown by action finishes".
  • In chain no. (4): Go to the action that sends books, and tick the option: "Wait until any jobs started by selected action finishes".
capink is online now   Reply With Quote
Old 10-23-2021, 08:23 AM   #745
Hortensia
Enthusiast
Hortensia began at the beginning.
 
Posts: 27
Karma: 10
Join Date: Jul 2021
Device: Kindle Paperwhite
Thank you!

It solves the problem for the chain no. (2) but not for the no. (4). I will leave my confirmation check then.

EDIT: When sending books to the device (chain no. 4), the option "Wait until any jobs started by selected action finishes" does wait for the books to be sent to the device but not for the subsequent action of "Sending metadata to device".

Last edited by Hortensia; 10-25-2021 at 07:11 PM.
Hortensia is offline   Reply With Quote
Old 11-18-2021, 06:06 PM   #746
ownedbycats
Wizard
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 3,192
Karma: 13656610
Join Date: Oct 2018
Device: Kobo Aura HD
Question: Can Selection Modifier be used to re-do the currently existing search, regardless of what it is? Mostly to remove now-invalid entries from the search after changing metadata - resorting doesn't do this.
ownedbycats is offline   Reply With Quote
Old 11-19-2021, 03:20 AM   #747
capink
Guru
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 658
Karma: 211740
Join Date: Aug 2015
Device: Kindle
Quote:
Originally Posted by ownedbycats View Post
Question: Can Selection Modifier be used to re-do the currently existing search, regardless of what it is? Mostly to remove now-invalid entries from the search after changing metadata - resorting doesn't do this.
Code:
from calibre_plugins.action_chains.actions.base import ChainAction

class RefreshSearch(ChainAction):

    name = 'Refresh Current Search'

    def run(self, gui, settings, chain):
        gui.search.do_search()
capink is online now   Reply With Quote
Old 11-19-2021, 01:39 PM   #748
ownedbycats
Wizard
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 3,192
Karma: 13656610
Join Date: Oct 2018
Device: Kobo Aura HD
Thank you.
ownedbycats is offline   Reply With Quote
Old 11-22-2021, 01:42 PM   #749
wiso
Member
wiso can extract oil from cheesewiso can extract oil from cheesewiso can extract oil from cheesewiso can extract oil from cheesewiso can extract oil from cheesewiso can extract oil from cheesewiso can extract oil from cheesewiso can extract oil from cheese
 
wiso's Avatar
 
Posts: 11
Karma: 1052
Join Date: Nov 2021
Device: kindle
Impressive plugin, it has been very useful to me
wiso is offline   Reply With Quote
Old 11-23-2021, 05:01 AM   #750
capink
Guru
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 658
Karma: 211740
Join Date: Aug 2015
Device: Kindle
Quote:
Originally Posted by wiso View Post
Impressive plugin, it has been very useful to me
Thanks. Glad it helped you.
capink is online now   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Manga plugin mastertea Plugins 1 11-23-2021 01:51 PM
[GUI Plugin] KindleUnpack - The Plugin DiapDealer Plugins 470 10-26-2021 09:15 AM
[GUI Plugin] Save Virtual Libraries To Column (GUI) chaley Plugins 14 04-04-2021 06:25 AM
[GUI Plugin] Wordpress frescogamba Plugins 11 04-06-2015 10:09 PM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 01:27 PM


All times are GMT -4. The time now is 04:47 AM.


MobileRead.com is a privately owned, operated and funded community.