10-13-2024, 03:15 AM | #1396 | |
Grand Sorcerer
Posts: 12,029
Karma: 7257323
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
The attached chain is another example that uses a different technique. |
|
10-22-2024, 02:18 AM | #1397 |
Enthusiast
Posts: 38
Karma: 10
Join Date: Nov 2023
Device: Kindle Oasis
|
is there a way to add the entire series of the selected book? I'm using 'Reading Goal' and it doesn't have that option
|
10-22-2024, 06:28 PM | #1398 | |
Wizard
Posts: 1,139
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
Quote:
If the 'Reading Goal' has no such option, you will have to make the Action Chains select all the books in the series. You can do this by adding the following template to "Search Using Templates" action: Code:
program: initial_ids = from_selection('id'); set_globals(initial_ids=initial_ids); all_series_ids = ''; for book_id in initial_ids: series = book_field(book_id, 'series'); series_ids = from_search('id', 'series:"=' & series & '"'); all_series_ids = list_union(all_series_ids, series_ids, ',') rof; all_series_ids If you want to revert to the original selections after adding all the books in the series, you can use another "Search Using Templates" action with the following template: Code:
program: globals(initial_ids) |
|
10-22-2024, 09:01 PM | #1399 | |
Enthusiast
Posts: 38
Karma: 10
Join Date: Nov 2023
Device: Kindle Oasis
|
Quote:
|
|
10-23-2024, 01:03 AM | #1400 |
Leftutti
Posts: 490
Karma: 1153449
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
|
Why not using the Calibre built-in function similar series?
|
10-23-2024, 04:38 AM | #1401 |
Wizard
Posts: 1,139
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
|
11-02-2024, 10:33 PM | #1402 |
want to learn what I want
Posts: 1,260
Karma: 6426810
Join Date: Sep 2020
Device: Calibre E-book viewer
|
Not a big issue but I found that some icons in the Chains dialogue can't be themed:
I wanted mainly to theme the 'plus' and 'edit-copy' icons because they look to me a bit faint in dark mode. The other icons, notably the ones called by Qpushbutton, will change in accordance to the theme images. I'm running 7.20.101 with the latest plugin version 1.20.7. |
11-03-2024, 02:02 PM | #1403 | |
Wizard
Posts: 1,139
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
Quote:
So please, if you have the time, test these areas to make sure everything is working properly before releasing any new version. I am not much interested in theming, and I guess it will be the same for most users. That is a matter of opinion. I personally think the priority should be to custom icons. Last edited by capink; 11-03-2024 at 02:08 PM. |
|
11-03-2024, 04:41 PM | #1404 | ||
want to learn what I want
Posts: 1,260
Karma: 6426810
Join Date: Sep 2020
Device: Calibre E-book viewer
|
Quote:
Quote:
I too think that the resources folder must have higher priority than the themes. And upon a quick test using distinct icons for the main plugin icon in the theme and in resources folder, all is working fine as well: the image that shows in Calibre main toolbar is the one in resources. edit to add - now that I looked again at the comments in the code, it's clear that I got things mixed up: Last edited by Comfy.n; 11-03-2024 at 05:52 PM. |
||
11-03-2024, 08:52 PM | #1405 |
Junior Member
Posts: 2
Karma: 10
Join Date: Nov 2024
Device: Kindle
|
Using Action Chains to trigger Generate Cover Plugin for News Feed
Hello!
I am trying to find a way to apply a cover that is automatically updated with the days date to a epub created by the News Feed function. In my quest I have come across many posts looking to do something similar, however nothing I have found works. I came across the Generate Cover plugin, which can create the cover in the way I like, however I would like to automate the application of that cover. I would like to know if its possible to use Action Chains to do the following: 1. Calibre pulls requested news sources and produces epub. 2. Action Chains identifies the new epub and triggers Generate Covers Plugin 3. Generate Covers Plugin applies the predetermined cover preset 4. Epub is now covered with custom cover and date on the cover. My apologies I am largely useless with python, any help would be appreciated. -Linc |
11-05-2024, 04:57 AM | #1406 |
Wizard
Posts: 1,139
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
I don't really have much experience with fetch news or Generate Cover plugin. Maybe others who use these things can comment on whether this can be done or not. You can try yourself to see whether this can be automated using an "Calibre Actions" in the Actions Chains plugin.
|
11-07-2024, 06:29 PM | #1407 |
Custom User Title
Posts: 9,543
Karma: 64960981
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
I want to create a chain with three variants:
Code:
program: add_chain_variant('Update Reading Goal Genres','genres','', 'statistics.png'); add_chain_variant('Update Reading Goal Challenges','challenges','','statistics.png'); add_chain_variant('Update Genres + Challenges','','','statistics.png'); Last edited by ownedbycats; 11-07-2024 at 06:33 PM. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Editor Plugin] Editor Chains | capink | Plugins | 94 | 07-03-2024 08:26 PM |
Action Chains Resources | capink | Plugins | 65 | 07-01-2024 04:12 PM |
[GUI Plugin] Noosfere_util, a companion plugin to noosfere DB | lrpirlet | Plugins | 2 | 08-18-2022 04:15 PM |
[GUI Plugin] Save Virtual Libraries To Column (GUI) | chaley | Plugins | 14 | 04-04-2021 06:25 AM |