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 02-25-2026, 10:42 AM   #1561
justinmiller87
Junior Member
justinmiller87 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Feb 2026
Device: Kindle Colorsoft & Kindle Scribe
Quote:
Originally Posted by capink View Post
If my memory serves me right, the plugin checks if the new value is equal to the old value (and in case of authors column it doesn't take different author order as different), and if they are, it does not apply the value to prevent changing last_modified column, which would in turn trigger changing opf files on disk and slow things unnecessarily.

Chaley has since introduced a change in calibre source that does a similar thing, so when I get time to look at the code I might remove this.

In the mean time, to get around this, the solution is to change the author string by adding an action that adds a "temporary" to the author list, and then sort and remove the temporary string in the next action.

Attached is a chain that does what I describe above.
I appreciate your help. That resolved it.
justinmiller87 is offline   Reply With Quote
Old 02-26-2026, 05:43 PM   #1562
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,786
Karma: 83105959
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Has there been any thought into making per-library chains, aside from restrictions? I have a second library now for my wishlist and most of my main-library chains are useless for it.
ownedbycats is offline   Reply With Quote
Old 02-27-2026, 01:08 AM   #1563
Terisa de morgan
Grand Sorcerer
Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.
 
Terisa de morgan's Avatar
 
Posts: 6,776
Karma: 13151503
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
Quote:
Originally Posted by ownedbycats View Post
Has there been any thought into making per-library chains, aside from restrictions? I have a second library now for my wishlist and most of my main-library chains are useless for it.
YES!, please. Because of this, my action chains are all included in menu entries with the name of the library. I would like something safest.
Terisa de morgan is offline   Reply With Quote
Old 03-02-2026, 08:30 PM   #1564
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,223
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Quote:
Originally Posted by ownedbycats View Post
Has there been any thought into making per-library chains, aside from restrictions? I have a second library now for my wishlist and most of my main-library chains are useless for it.
When the plugin was in the initial phases of development, it was put forth whether the chains should be library specific or global. There was not much traction for the library specific option, so the plugin continued with the global option.

Quote:
Originally Posted by capink View Post
Another thing I am not sure about, is whether it makes sense to make the chains library specific, or keep them as they are now. If people have any input about this, I would be interested in hearing it. It might break existing settings though.
It was a binary either/or choice. The idea of making the plugin support both invites a lot of complications in coding as well as in the interface of the plugin, that I am not ready to deal with right now. I am not going to rule the possibility altogether, but if it ever happens it is not going to be anytime soon.


Quote:
Originally Posted by Terisa de morgan View Post
YES!, please. Because of this, my action chains are all included in menu entries with the name of the library. I would like something safest.

If your main concern is safety, you can set the following condition on your chains:
Code:
template: program: current_library_name()
comparison operator: =
value: the name of your target library
This will make sure the chain does not run accidentally in libraries it is not intended to run in.
capink is offline   Reply With Quote
Old 03-05-2026, 12:11 AM   #1565
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,786
Karma: 83105959
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Possible bug with an interaction between Reading Goal and Action Chains and multiple libraries.. I not sure which plugin responsible so I put both threads.

Steps to replicate:

1. In Reading Goal for Library A, have a challenge set.
2. Put "Add to Challenge > <challenge name>" in an action chain.
3. Open Calibre in Library B.
4. Copy book to Library A, and then switch.
5. Run the action chain.

It fails to validate, and when I open the Calibre actions in AC, it shows "no challenges" despite there being a challenge.
ownedbycats is offline   Reply With Quote
Old 03-13-2026, 06:22 AM   #1566
yanekyan
Junior Member
yanekyan began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Dec 2013
Device: pocketbook 623
Hello,
I apologize for my English.
Is there a command to clear search history? (clear search bar)
Any templates?
I would like to add this to my action chain.
yanekyan is offline   Reply With Quote
Old 03-14-2026, 03:44 AM   #1567
bluefish2020
Junior Member
bluefish2020 has become a pillar of the MobileRead communitybluefish2020 has become a pillar of the MobileRead communitybluefish2020 has become a pillar of the MobileRead communitybluefish2020 has become a pillar of the MobileRead communitybluefish2020 has become a pillar of the MobileRead communitybluefish2020 has become a pillar of the MobileRead communitybluefish2020 has become a pillar of the MobileRead communitybluefish2020 has become a pillar of the MobileRead communitybluefish2020 has become a pillar of the MobileRead communitybluefish2020 has become a pillar of the MobileRead communitybluefish2020 has become a pillar of the MobileRead community
 
bluefish2020's Avatar
 
Posts: 9
Karma: 15972
Join Date: Mar 2025
Device: kindle oasis
Quote:
Originally Posted by yanekyan View Post
Is there a command to clear search history? (clear search bar)

The Action 'Selection Modifier' has a 'Clear Current Search' setting in addition to options for a new search or selection.

It does not clear the dropdown of prior searches but that may not be what you are looking for.
bluefish2020 is offline   Reply With Quote
Old 03-15-2026, 01:52 PM   #1568
yanekyan
Junior Member
yanekyan began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Dec 2013
Device: pocketbook 623
OK, it's work, thank you.
yanekyan is offline   Reply With Quote
Old 03-27-2026, 08:31 AM   #1569
jay_c_penny
Junior Member
jay_c_penny began at the beginning.
 
Posts: 4
Karma: 10
Join Date: May 2023
Device: Kobo Libra 2
Is there any way to edit the Books Added event module so that it only targets books that have been added by Calibre's auto adder?
jay_c_penny is offline   Reply With Quote
Old 03-30-2026, 12:25 PM   #1570
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,786
Karma: 83105959
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Would like to make a chain that clears Additional Restriction when switching to All Books. Is possible?
ownedbycats is offline   Reply With Quote
Old 04-03-2026, 03:04 AM   #1571
Terisa de morgan
Grand Sorcerer
Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.
 
Terisa de morgan's Avatar
 
Posts: 6,776
Karma: 13151503
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
Quote:
Originally Posted by capink View Post
If your main concern is safety, you can set the following condition on your chains:
Code:
template: program: current_library_name()
comparison operator: =
value: the name of your target library
I'm setting this condition and the action is shown as valid in another library.

Last edited by Terisa de morgan; 04-03-2026 at 03:20 AM.
Terisa de morgan is offline   Reply With Quote
Old Yesterday, 03:24 PM   #1572
Wiggo
Leftutti
Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.
 
Wiggo's Avatar
 
Posts: 613
Karma: 2110015
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
I’ve created a new custom column called #original_title and have managed to get EPOM PI to return useful results.
Unfortunately, my brain is so fried right now that I can’t think of anything for ‘Change Case’ → ‘Title Case’. I’d like to change eg “NOT TILL WE ARE LOST” to “Not Till We Are Lost”, but I can’t seem to get it to work with Action Chain at the moment.
Wiggo is offline   Reply With Quote
Old Yesterday, 05:03 PM   #1573
bluefish2020
Junior Member
bluefish2020 has become a pillar of the MobileRead communitybluefish2020 has become a pillar of the MobileRead communitybluefish2020 has become a pillar of the MobileRead communitybluefish2020 has become a pillar of the MobileRead communitybluefish2020 has become a pillar of the MobileRead communitybluefish2020 has become a pillar of the MobileRead communitybluefish2020 has become a pillar of the MobileRead communitybluefish2020 has become a pillar of the MobileRead communitybluefish2020 has become a pillar of the MobileRead communitybluefish2020 has become a pillar of the MobileRead communitybluefish2020 has become a pillar of the MobileRead community
 
bluefish2020's Avatar
 
Posts: 9
Karma: 15972
Join Date: Mar 2025
Device: kindle oasis
Quote:
Originally Posted by Wiggo View Post
I’ve created a new custom column called #original_title and have managed to get EPOM PI to return useful results.
Unfortunately, my brain is so fried right now that I can’t think of anything for ‘Change Case’ → ‘Title Case’. I’d like to change eg “NOT TILL WE ARE LOST” to “Not Till We Are Lost”, but I can’t seem to get it to work with Action Chain at the moment.

If no existing chains exist I'd probably make a new module like this one:

Code:
from calibre_plugins.action_chains.actions.base import ChainAction
from calibre.utils.titlecase import titlecase

class MyAction(ChainAction):

    # replace with the name of your action
    name = 'Title Case'
    support_scopes = True

    def run(self, gui, settings, chain):
        api = gui.current_db.new_api

        selected_books = chain.scope().get_book_ids()
        old_titles = api.all_field_for("title", selected_books, None)
        new_titles = {k: titlecase(v) for k, v in old_titles.items()}
        updates = {k: v for k, v in new_titles.items() if v != old_titles[k]}
        changed_ids = api.set_field(f"title", updates)
        # updating marks and view might be useful too?
        #marks = {id: "Changed title" for id in changed_ids}
        #gui.current_db.set_marked_ids(marks)
        #gui.library_view.model().refresh_ids(changed_ids)
bluefish2020 is offline   Reply With Quote
Old Yesterday, 05:42 PM   #1574
Fiammifero
Junior Member
Fiammifero began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Dec 2022
Device: Several
Import & export CSV/Excel

Hi, for whoever interested – Attached, you will find three actions that I share with you for information.
These actions include some python code.
They work well with my config. However of course I cannot exclude any misuse or damage, even if unlikely, and I will not be held responsible. So just DON'T run them if you don’t have a full back-up of your library. You have been warned. Also please note that one of the actions will write new values to one of your custom columns. This cannot be cancelled.

1/ Copy selected books information to clipboard.zip
It copies a table to the clipboard (separator = TAB).
For each book in the selection you will find a line of information with mainly the book id, title, authors, file paths.
Optionally, if you are a bit familiar with python, you may also export your custom columns. My own custom columns will be ignored in the action executions, but you might want to replace these column names with yours.

2/ Import column from CSV.zip
It lets you select a CSV file (UTF8) with two columns. The first column is a list of book ids ; the other one is a list of values that you want to copy.
The same dialog box lets you specify which is your chosen custom column target ; and
what are the headers of the two CSV columns (for instance id and fint). The second column of the CSV target will be copied to your custom column for each listed book id.

3/ Books matching TXT lines.zip
It lets you select an UTF8 text file. Each line of the file describes approximately a book you want to search in your library, with possible mistakes. The strings are exactly as you would enter them in the Search bar.
The aim of the action is to identify the books of the library matching the lines. For each line, it selects the first book matching it. Eventually it copies the resulting table to the clipboard (with TAB separators) : line requested, first found matching book, author and book id.
It also changes the selection to show the matching books.
Have fun.

To import one of these actions : Action Chains > Add/modify chains > right click table > import > select the zip file
Attached Files
File Type: zip Books matching TXT lines.zip (2.6 KB, 5 views)
File Type: zip Import colomn from CSV.zip (2.8 KB, 8 views)
File Type: zip Copy selected books information to clipboard.zip (1.6 KB, 8 views)
Fiammifero is offline   Reply With Quote
Old Yesterday, 08:51 PM   #1575
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,754
Karma: 64144480
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Wiggo View Post
I’ve created a new custom column called #original_title and have managed to get EPOM PI to return useful results.
Unfortunately, my brain is so fried right now that I can’t think of anything for ‘Change Case’ → ‘Title Case’. I’d like to change eg “NOT TILL WE ARE LOST” to “Not Till We Are Lost”, but I can’t seem to get it to work with Action Chain at the moment.
Sometimes you first need to LOWER, then Title case when all caps
theducks is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Action Chains Resources capink Plugins 83 05-07-2026 02:16 AM
[Editor Plugin] Editor Chains capink Plugins 131 04-26-2026 05:33 AM
[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 02:08 PM.


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