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 01-12-2023, 10:30 AM   #1006
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,199
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Quote:
Originally Posted by ownedbycats View Post
Question: Can I set an action to open the link for a selected identifier?

Context: Going through my dormant fanfics to see if any of them have been deleted. Doing bulk-updates with FanFicFare is frowned upon. I thought I could select about 5-10 fics at a time and have Action Chains open the identifier link in the browser.
Open with action has a template option that should make this work depending on the browser you use. Firefox has a -new-tab option that should make them all open in the same window.
capink is offline   Reply With Quote
Old 01-12-2023, 01:27 PM   #1007
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,044
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by capink View Post
I planning an overhaul for icon management in the future. There is a similar functionality in calibre columns icons which I will look to see whether is re-usable or not when I have the time for this. So, I am currently no inclined to work on this.
That makes sense.

Will the path of the icons change? I was a bit surprised to find them in {calibre appdata}\resources\images.
ownedbycats is offline   Reply With Quote
Advert
Old 01-12-2023, 08:28 PM   #1008
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,044
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
New question:

I have an action chain (remove book from device) that prompts for confirmation. This, in turns, calls another chain (clear device-related fields) that also prompts for confirmation.

Is there a conditional I can put on the subchain's prompt to stop the double-prompt?
ownedbycats is offline   Reply With Quote
Old 01-13-2023, 09:40 AM   #1009
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,199
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Quote:
Originally Posted by ownedbycats View Post
New question:

I have an action chain (remove book from device) that prompts for confirmation. This, in turns, calls another chain (clear device-related fields) that also prompts for confirmation.

Is there a conditional I can put on the subchain's prompt to stop the double-prompt?
Put the following condition on the subchain's prompt action:

Code:
template = program: globals(_caller)
datatype = text
comparison = "="
condition value =
capink is offline   Reply With Quote
Old 01-13-2023, 09:50 AM   #1010
random733
Junior Member
random733 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jan 2023
Device: none
Hi,

newbie question, please help.

Ive chained the event "books added" (https://www.mobileread.com/forums/sh...0&postcount=16) to the action "download metadata" (https://www.mobileread.com/forums/sh...9&postcount=28) but it doesnt download the metadata properly (especially if more books were added).

"Books added" is described as marking the newly added books as it finishes (so no selector necessary?), but it is executed after each book added, so this maybe causes interferences. Is there an elegant way to solve this? Maybe with queue, delay or something else?
random733 is offline   Reply With Quote
Advert
Old 01-14-2023, 10:41 AM   #1011
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,199
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Quote:
Originally Posted by random733 View Post
Hi,

newbie question, please help.

Ive chained the event "books added" (https://www.mobileread.com/forums/sh...0&postcount=16) to the action "download metadata" (https://www.mobileread.com/forums/sh...9&postcount=28) but it doesnt download the metadata properly (especially if more books were added).

"Books added" is described as marking the newly added books as it finishes (so no selector necessary?), but it is executed after each book added, so this maybe causes interferences. Is there an elegant way to solve this? Maybe with queue, delay or something else?
It works for me as expected. It only selects after all the books are added. There is a lag, which is intentional to make sure no more books will be added.

Anyway, if it is not working for you for some reason, you are advised to make chain containing the Add Books Action (you can get it from here) followed by the download metadata.
capink is offline   Reply With Quote
Old 01-15-2023, 08:24 PM   #1012
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,044
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Template question: is it possible to ignore an empty variable?

I have this template to populate #percentread from the runtime chain variable "Current_Page":

Code:
program:
	totalpage = $#pagecount;
	currentpage = globals(Current_Page=1);
	newpercent = round(multiply ((currentpage / totalpage), 100));
Currently, if I leave Current_Page empty, it defaults to 1 and newpercent does math based on that.

Is there a way to instead ignore an empty variable and leave #percentread unmodified?

Last edited by ownedbycats; 01-15-2023 at 08:26 PM.
ownedbycats is offline   Reply With Quote
Old 01-15-2023, 08:58 PM   #1013
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,199
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Code:
program:
	if globals(Current_Page) == ''
	then
		$#percentread
	else
		do whatever you want here
	fi
capink is offline   Reply With Quote
Old 01-16-2023, 06:59 AM   #1014
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,044
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Thanks I like to have my chains be as non-destructive as possible if accidentally run.
ownedbycats is offline   Reply With Quote
Old 02-03-2023, 02:03 PM   #1015
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,044
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Could an action chain work to semi-automate copying multiple columns from one book record to another?

Specifically, I'd like to copy #lastread (date), #percentread (integer), and #ratings (rating) between different book editions (usually physical & Standard Ebooks versions of a public domain work). To make things simpler, they will always have the same title and author.
ownedbycats is offline   Reply With Quote
Old 02-04-2023, 06:16 AM   #1016
ackomb
Zealot
ackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura about
 
Posts: 106
Karma: 4486
Join Date: Mar 2020
Location: Netherlands
Device: i-pad
Error after last update

So last week I had no issue running my action chains after my weekly updates.
This week however (after the last Calibre update and several plugin updates) I get this error.

Quote:
calibre, version 6.12.0
ERROR: Unhandled exception: <b>AttributeError</b>:'Application' object has no attribute 'stylesheet_for_line_edit'

calibre 6.12 embedded-python: True
Windows-10-10.0.22621-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.22621')
Python 3.10.1
Windows: ('10', '10.0.22621', 'SP0', 'Multiprocessor Free')
Interface language: en_GB
Successfully initialized third party plugins: Action Chains (1, 18, 3) && BookFusion Plugin (0, 7, 0) && Count Pages (1, 12, 1) && English Noun Frequency (1, 0, 15) && FanFicFare (4, 20, 0) && Find Duplicates (1, 10, 7) && Generate Cover (2, 3, 2) && Job Spy (1, 0, 203) && Mass Search-Replace (1, 7, 1) && Modify ePub (1, 8, 1) && Reading List (1, 15, 1) && User Category (1, 6, 0) && View Manager (1, 10, 2)
Traceback (most recent call last):
File "calibre_plugins.action_chains.gui.__init__", line 46, in setup_ui
File "calibre_plugins.action_chains.actions.search_repl ace", line 67, in __init__
File "calibre_plugins.action_chains.actions.search_repl ace", line 467, in prepare_search_and_replace
File "calibre_plugins.action_chains.actions.search_repl ace", line 614, in s_r_search_mode_changed
File "calibre_plugins.action_chains.actions.search_repl ace", line 714, in s_r_paint_results
File "calibre_plugins.action_chains.actions.search_repl ace", line 623, in s_r_set_colors
AttributeError: 'Application' object has no attribute 'stylesheet_for_line_edit'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "calibre_plugins.action_chains.gui.views", line 430, in _on_button_clicked
File "calibre_plugins.action_chains.gui.__init__", line 41, in __init__
File "calibre\gui2\widgets2.py", line 223, in __init__
File "calibre_plugins.action_chains.gui.__init__", line 51, in setup_ui
File "calibre_plugins.action_chains.actions.search_repl ace", line 67, in __init__
File "calibre_plugins.action_chains.actions.search_repl ace", line 467, in prepare_search_and_replace
File "calibre_plugins.action_chains.actions.search_repl ace", line 614, in s_r_search_mode_changed
File "calibre_plugins.action_chains.actions.search_repl ace", line 714, in s_r_paint_results
File "calibre_plugins.action_chains.actions.search_repl ace", line 623, in s_r_set_colors
AttributeError: 'Application' object has no attribute 'stylesheet_for_line_edit'
Since I'm not really schooled in reading these error messages I've had to figure it out by trial and error. But the Action "Search and Replace" even in a brand new chain triggers this error immediately upon setup.

Am I the only one experiencing this, or do others experience the same?
ackomb is offline   Reply With Quote
Old 02-04-2023, 08:14 AM   #1017
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: 549
Karma: 1717097
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
Me too

Spoiler:
Code:
calibre, version 6.12.0
FEHLER: Unbehandelter Ausnahmefehler: <b>AttributeError</b>:'Application' object has no attribute 'stylesheet_for_line_edit'

calibre 6.12  embedded-python: True
Windows-10-10.0.19045-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19045')
Python 3.10.1
Windows: ('10', '10.0.19045', 'SP0', 'Multiprocessor Free')
Interface language: de
Successfully initialized third party plugins: DeDRM (10, 0, 3) && Action Chains (1, 18, 3) && Annotations (1, 17, 13) && BOL_DE (0, 9, 2) && Count Pages (1, 12, 1) && DNB_DE (3, 2, 1) && EpubMerge (2, 15, 0) && Extract ISBN (1, 6, 0) && Fantastic Fiction (1, 6, 0) && Favourites Menu (1, 3, 0) && Find Duplicates (1, 10, 7) && Goodreads (1, 7, 3) && Goodreads Sync (1, 16, 2) && Import List (1, 9, 0) && KOReader Sync (0, 4, 1) && Kindle hi-res covers (0, 5, 0) && KindleUnpack - The Plugin (0, 83, 1) && Kobo Utilities (2, 16, 6) && KoboTouchExtended (3, 6, 3) && Last Modified (0, 8, 4) && LibraryThing Match (0, 2, 1) && Manage Series (1, 5, 0) && Modify ePub (1, 8, 1) && Quality Check (1, 13, 3) && Quick Preferences (1, 7, 0) && Reading List (1, 15, 1) && Search The Internet (1, 10, 0) && TextDiff (1, 1, 2) && View Manager (1, 10, 2) && Walk Search History (1, 5, 3)
Traceback (most recent call last):
  File "calibre_plugins.action_chains.action", line 448, in run_chain
  File "calibre_plugins.action_chains.chains", line 391, in run
  File "calibre_plugins.action_chains.chains", line 205, in _run_loop
  File "calibre_plugins.action_chains.chains", line 182, in _run_loop
  File "calibre_plugins.action_chains.actions.search_replace", line 1072, in run
  File "calibre_plugins.action_chains.actions.search_replace", line 67, in __init__
  File "calibre_plugins.action_chains.actions.search_replace", line 467, in prepare_search_and_replace
  File "calibre_plugins.action_chains.actions.search_replace", line 614, in s_r_search_mode_changed
  File "calibre_plugins.action_chains.actions.search_replace", line 714, in s_r_paint_results
  File "calibre_plugins.action_chains.actions.search_replace", line 623, in s_r_set_colors
AttributeError: 'Application' object has no attribute 'stylesheet_for_line_edit'
Wiggo is offline   Reply With Quote
Old 02-04-2023, 09:30 AM   #1018
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,044
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Users: A bit of code used for the search & replace was removed in 6.12. So downgrading to 6.11 should work for now.

capink: Specifically, def stylesheet_for_line_edit.

Last edited by ownedbycats; 02-04-2023 at 11:23 AM.
ownedbycats is offline   Reply With Quote
Old 02-06-2023, 12:46 AM   #1019
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,199
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Version 1.18.4 - 6 February 2023
Fix: Search and Replace: Fix issue introduced by updates to calibre 6.12.0.
capink is offline   Reply With Quote
Old 02-06-2023, 03:02 AM   #1020
jbacelar
Interested in the matter
jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.
 
jbacelar's Avatar
 
Posts: 421
Karma: 426094
Join Date: Dec 2011
Location: Spain, south coast
Device: Pocketbook InkPad 3
jbacelar 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 02:36 AM.


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