|
|
#1561 | |
|
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Feb 2026
Device: Kindle Colorsoft & Kindle Scribe
|
Quote:
|
|
|
|
|
|
|
#1562 |
|
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
|
|
|
|
|
#1563 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
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.
|
|
|
|
|
|
#1564 | |||
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,223
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
|
Quote:
Quote:
Quote:
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 |
|||
|
|
|
|
|
#1565 |
|
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
|
|
|
|
|
#1566 |
|
Junior Member
![]() 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. |
|
|
|
|
|
#1567 |
|
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9
Karma: 15972
Join Date: Mar 2025
Device: kindle oasis
|
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. |
|
|
|
|
|
#1568 |
|
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Dec 2013
Device: pocketbook 623
|
OK, it's work, thank you.
|
|
|
|
|
|
#1569 |
|
Junior Member
![]() 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?
|
|
|
|
|
|
#1570 |
|
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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?
|
|
|
|
|
|
#1571 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
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. |
|
|
|
|
|
#1572 |
|
Leftutti
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
|
|
|
|
|
#1573 | |
|
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9
Karma: 15972
Join Date: Mar 2025
Device: kindle oasis
|
Quote:
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)
|
|
|
|
|
|
|
#1574 |
|
Junior Member
![]() 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 |
|
|
|
|
|
#1575 | |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
|
|
|
|
|
![]() |
|
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 |