Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 08-01-2025, 12:24 PM   #1516
capink
Wizard
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: 1,203
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Quote:
Originally Posted by ownedbycats View Post
Is a way to apply an additonal restriction?
Without writing a specific module for this, the quick and dirty way is to use a "Run Python Code" action with this code:
  • To set a named restriction
    Code:
    def run(gui, settings, chain):
        gui.apply_named_search_restriction('restriction_name')
  • To set a restriction from search
    Code:
    def run(gui, settings, chain):
        gui.apply_text_search_restriction('search_string')
capink is offline   Reply With Quote
Old 08-02-2025, 05:51 PM   #1517
Far_Pen_6884
Enthusiast
Far_Pen_6884 began at the beginning.
 
Posts: 27
Karma: 10
Join Date: Jul 2025
Device: paperwhite
Is it possible to have an action chain trigger automatically when I perform a certain action, like rating a book?

I've seen users sharing action chains as zip files. How can I import and export those JSON files into an action chain?

Last edited by Far_Pen_6884; 08-02-2025 at 05:53 PM.
Far_Pen_6884 is offline   Reply With Quote
Old 08-02-2025, 06:55 PM   #1518
ownedbycats
Custom User Title
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: 11,112
Karma: 77213681
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Event Manager in menu.

Right-click chain in Manage Chains.
ownedbycats is online now   Reply With Quote
Old 08-05-2025, 04:05 AM   #1519
un_pogaz
Chalut o/
un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.
 
un_pogaz's Avatar
 
Posts: 446
Karma: 672378
Join Date: Dec 2017
Device: Kobo
I share a user module: Re-calc Book Size
It's a little module to re-calc the size column of a book.
Useful if you've had edited the book files by a third-party program.

https://www.mobileread.com/forums/sh...65#post4529065
un_pogaz is offline   Reply With Quote
Old 08-05-2025, 03:35 PM   #1520
ownedbycats
Custom User Title
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: 11,112
Karma: 77213681
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by un_pogaz View Post
I share a user module: Re-calc Book Size
It's a little module to re-calc the size column of a book.
Useful if you've had edited the book files by a third-party program.

https://www.mobileread.com/forums/sh...65#post4529065
Useful!
ownedbycats is online now   Reply With Quote
Old 08-20-2025, 06:55 AM   #1521
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,476
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Is there an existing module or action that will open an input dialog to get a line of text? It is easy enough to do as a python action, getting the text and dropping it into a global, but why reinvent the wheel?

Another question: is there currently a way to use the current search as a temporary VL? This is done manually by clicking on VL and then "*current search". Again, this is straightforward to do with a python template, but ...

Last edited by chaley; 08-20-2025 at 07:04 AM.
chaley is offline   Reply With Quote
Old 08-20-2025, 12:07 PM   #1522
capink
Wizard
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: 1,203
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Quote:
Originally Posted by chaley View Post
Is there an existing module or action that will open an input dialog to get a line of text? It is easy enough to do as a python action, getting the text and dropping it into a global, but why reinvent the wheel?.
Not exactly an input dialog, but the Chain Variables action has an interactive checkbox that will allow you to enter a text to be saved to global variable. If not suitable for you needs, we can always add a new action. Not sure whether to add to the resources thread or directly in the builtin actions.

Quote:
Originally Posted by chaley View Post
Another question: is there currently a way to use the current search as a temporary VL? This is done manually by clicking on VL and then "*current search". Again, this is straightforward to do with a python template, but ...
Not currently. I was planning on an action that does some of these things like VLs and restrictions, but haven't gotten around to it. I had an unpolished multi-sort action in the resources thread that I thought maybe I can add the VLs and restrictions to, instead of having a dedicated action for every single action. I usually put temporary actions in the resources thread until I get a clear idea of how the final version should look like.

Currently, the quick and dirty way is a "Run Python Action"
  • To use the current search as vl:
    Code:
    def run(gui, settings, chain):
        gui.apply_virtual_library('*')
  • If you want to use a named vl:
    Code:
    def run(gui, settings, chain):
        gui.apply_virtual_library('vl_name')
  • To set a named restriction
    Code:
    def run(gui, settings, chain):
        gui.apply_named_search_restriction('restriction_name')
  • To set a restriction from search
    Code:
    def run(gui, settings, chain):
        gui.apply_text_search_restriction('search_string')

A dedicated action would provide a config widget with combobox to choose from the available vls and restrictions.

Last edited by capink; 08-20-2025 at 12:21 PM.
capink is offline   Reply With Quote
Old 08-20-2025, 03:54 PM   #1523
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,476
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
@capink: thanks. I did what I needed using the interactive selection of chain variables. It works well. I would rather that a single click on the value cell opened the editor, but a double click works.

The chain is documented in this post.
chaley is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Action Chains Resources capink Plugins 78 08-05-2025 04:01 AM
[Editor Plugin] Editor Chains capink Plugins 106 06-17-2025 05:36 PM
[GUI Plugin] Noosfere_util, a companion plugin to noosfere DB lrpirlet Plugins 2 08-18-2022 03:15 PM
[GUI Plugin] Save Virtual Libraries To Column (GUI) chaley Plugins 14 04-04-2021 05:25 AM


All times are GMT -4. The time now is 01:11 PM.


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