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 11-10-2022, 07:21 AM   #961
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
That is because I am able to detect the jobs easily by:
  • Query the job manager of all running job ids immediately before the action is launched and storing them.
  • Query the job manager of all running job ids immediately after the action is launched and storing them.
  • Figuring out which jobs were started by the action itself, by subtracting the first set of job ids from the second set.
  • Keep blocking the GUI until all the jobs started by the action are finished.

I never used any of the plugins you cited, and have no experience with proceed_question. If anyone can provide the code to detect proceed_question dialog in the middle of the action in a robust way, I will add it to the plugin.
yeah, I wasn't sure if proceed_question() would be easily detectable.

My thought, maybe a bit kludgey for a plugin meant to automate things, was some sort of 'wait for user' action, which pauses the chain until the user confirms things are done (this need not necessarily be for the dialog; there's other instances where a pause may be helpful). The 'prompt for confirmation' dialog might've worked for this if it didn't block off the rest of the UI, lol.

Last edited by ownedbycats; 11-10-2022 at 06:52 PM.
ownedbycats is online now   Reply With Quote
Old 11-28-2022, 09:33 AM   #962
The Holy
Enthusiast
The Holy began at the beginning.
 
The Holy's Avatar
 
Posts: 25
Karma: 10
Join Date: Aug 2021
Device: none
Hello!

I have this problem: https://www.mobileread.com/forums/sh...d.php?t=350600

So in short, I have two identifiers, grvotes and grrating, each in a "Column built from other columns" column which I want to move into "Floating point numbers" columns so that the goodreads rating and votes display as a value in calibre-web instead of as identifiers.
The Holy is offline   Reply With Quote
Advert
Old 11-28-2022, 10:26 AM   #963
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
You don't need action chains to accomplish this. You can do with calibre's batch edit metadata by selecting all the books you want to edit > right click > edit metadata > edit metadata in bulk > copy the parameters in the screenshot below.

Note: In the screenshot below I move to a new column called #testint. Replace that with the name of the column you want.
Attached Thumbnails
Click image for larger version

Name:	1.png
Views:	203
Size:	156.9 KB
ID:	198072  
capink is offline   Reply With Quote
Old 11-29-2022, 05:19 AM   #964
The Holy
Enthusiast
The Holy began at the beginning.
 
The Holy's Avatar
 
Posts: 25
Karma: 10
Join Date: Aug 2021
Device: none
Quote:
Originally Posted by capink View Post
You don't need action chains to accomplish this. You can do with calibre's batch edit metadata by selecting all the books you want to edit > right click > edit metadata > edit metadata in bulk > copy the parameters in the screenshot below.

Note: In the screenshot below I move to a new column called #testint. Replace that with the name of the column you want.
Thank you, it works perfectly!
The Holy is offline   Reply With Quote
Old 12-04-2022, 12:25 PM   #965
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
New test version

  • Update: Add "Convert Books" action.

This action gives the user the ability to configure the convert options as well as the input and output format. The input format can be specified in a comma separated list of formats in order of preference. You can also use calibre's template language to make the input/output format change per book as well.

You can download this beta from here
Attached Thumbnails
Click image for larger version

Name:	1.png
Views:	165
Size:	41.7 KB
ID:	198170   Click image for larger version

Name:	2.png
Views:	189
Size:	62.0 KB
ID:	198171   Click image for larger version

Name:	3.png
Views:	161
Size:	75.2 KB
ID:	198172   Click image for larger version

Name:	4.png
Views:	160
Size:	58.0 KB
ID:	198173  

Last edited by capink; 12-04-2022 at 12:30 PM.
capink is offline   Reply With Quote
Advert
Old 12-04-2022, 01:08 PM   #966
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,615
Karma: 7891011
Join Date: Sep 2020
Device: none
Hi capink! Just gave it a try and I'm getting this, upon clicking any of the options buttons:
Attached Thumbnails
Click image for larger version

Name:	MWSnap0906 2022-12-04, 15_05_48.png
Views:	164
Size:	51.9 KB
ID:	198174  
Comfy.n is offline   Reply With Quote
Old 12-04-2022, 01:13 PM   #967
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
Same here.

Spoiler:
Code:
calibre, version 6.9.0
ERROR: Unhandled exception: <b>AttributeError</b>:'ConfigWidget' object has no attribute 'input_options'

calibre 6.9  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: None
Successfully initialized third party plugins: DeACSM (0, 0, 16) && DeDRM (10, 0, 2) && Action Chains (1, 18, 1) && Baen (1, 1, 0) && Barnes & Noble (1, 4, 0) && Comments Cleaner (1, 8, 0) && Count Pages (1, 12, 0) && Embed Comic Metadata (1, 6, 4) && EpubCheck (0, 2, 4) && EpubMerge (2, 15, 0) && EpubSplit (3, 5, 0) && Extract ISBN (1, 6, 0) && FanFicFare (4, 18, 0) && Fantastic Fiction (1, 6, 0) && Favourites Menu (1, 3, 0) && Find Duplicates (1, 10, 7) && Generate Cover (2, 3, 0) && GetFileName (0, 2, 0) && Goodreads (1, 7, 1) && Import List (1, 9, 0) && Job Spy (1, 0, 196) && Kindle hi-res covers (0, 5, 0) && KindleUnpack - The Plugin (0, 83, 1) && Kobo Books (1, 9, 2) && Kobo Utilities (2, 16, 6) && KoboTouchExtended (3, 6, 3) && Last Modified (0, 8, 4) && Manage Series (1, 5, 0) && Modify ePub (1, 8, 1) && MultiColumnSearch (1, 0, 95) && Obok DeDRM (7, 2, 1) && Open With (1, 8, 0) && Overdrive Link (2, 53, 0) && Quality Check (1, 13, 3) && Reading List (1, 14, 0) && Search The Internet (1, 10, 0) && SmartEject (2, 5, 0) && Standard Ebooks (1, 0, 0) && Sum Column (0, 3, 1) && View Manager (1, 10, 2) && Walk Search History (1, 5, 3) && Overdrive Link Metadata Source (2, 53, 0)
Traceback (most recent call last):
  File "calibre_plugins.action_chains.actions.convert_books", line 179, in _on_input_button_clicked
AttributeError: 'ConfigWidget' object has no attribute 'input_options'
Code:
calibre, version 6.9.0
ERROR: Unhandled exception: <b>AttributeError</b>:'ConfigWidget' object has no attribute 'common_options'

calibre 6.9  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: None
Successfully initialized third party plugins: DeACSM (0, 0, 16) && DeDRM (10, 0, 2) && Action Chains (1, 18, 1) && Baen (1, 1, 0) && Barnes & Noble (1, 4, 0) && Comments Cleaner (1, 8, 0) && Count Pages (1, 12, 0) && Embed Comic Metadata (1, 6, 4) && EpubCheck (0, 2, 4) && EpubMerge (2, 15, 0) && EpubSplit (3, 5, 0) && Extract ISBN (1, 6, 0) && FanFicFare (4, 18, 0) && Fantastic Fiction (1, 6, 0) && Favourites Menu (1, 3, 0) && Find Duplicates (1, 10, 7) && Generate Cover (2, 3, 0) && GetFileName (0, 2, 0) && Goodreads (1, 7, 1) && Import List (1, 9, 0) && Job Spy (1, 0, 196) && Kindle hi-res covers (0, 5, 0) && KindleUnpack - The Plugin (0, 83, 1) && Kobo Books (1, 9, 2) && Kobo Utilities (2, 16, 6) && KoboTouchExtended (3, 6, 3) && Last Modified (0, 8, 4) && Manage Series (1, 5, 0) && Modify ePub (1, 8, 1) && MultiColumnSearch (1, 0, 95) && Obok DeDRM (7, 2, 1) && Open With (1, 8, 0) && Overdrive Link (2, 53, 0) && Quality Check (1, 13, 3) && Reading List (1, 14, 0) && Search The Internet (1, 10, 0) && SmartEject (2, 5, 0) && Standard Ebooks (1, 0, 0) && Sum Column (0, 3, 1) && View Manager (1, 10, 2) && Walk Search History (1, 5, 3) && Overdrive Link Metadata Source (2, 53, 0)
Traceback (most recent call last):
  File "calibre_plugins.action_chains.actions.convert_books", line 193, in _on_common_button_clicked
AttributeError: 'ConfigWidget' object has no attribute 'common_options'
Code:
calibre, version 6.9.0
ERROR: Unhandled exception: <b>AttributeError</b>:'ConfigWidget' object has no attribute 'output_options'

calibre 6.9  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: None
Successfully initialized third party plugins: DeACSM (0, 0, 16) && DeDRM (10, 0, 2) && Action Chains (1, 18, 1) && Baen (1, 1, 0) && Barnes & Noble (1, 4, 0) && Comments Cleaner (1, 8, 0) && Count Pages (1, 12, 0) && Embed Comic Metadata (1, 6, 4) && EpubCheck (0, 2, 4) && EpubMerge (2, 15, 0) && EpubSplit (3, 5, 0) && Extract ISBN (1, 6, 0) && FanFicFare (4, 18, 0) && Fantastic Fiction (1, 6, 0) && Favourites Menu (1, 3, 0) && Find Duplicates (1, 10, 7) && Generate Cover (2, 3, 0) && GetFileName (0, 2, 0) && Goodreads (1, 7, 1) && Import List (1, 9, 0) && Job Spy (1, 0, 196) && Kindle hi-res covers (0, 5, 0) && KindleUnpack - The Plugin (0, 83, 1) && Kobo Books (1, 9, 2) && Kobo Utilities (2, 16, 6) && KoboTouchExtended (3, 6, 3) && Last Modified (0, 8, 4) && Manage Series (1, 5, 0) && Modify ePub (1, 8, 1) && MultiColumnSearch (1, 0, 95) && Obok DeDRM (7, 2, 1) && Open With (1, 8, 0) && Overdrive Link (2, 53, 0) && Quality Check (1, 13, 3) && Reading List (1, 14, 0) && Search The Internet (1, 10, 0) && SmartEject (2, 5, 0) && Standard Ebooks (1, 0, 0) && Sum Column (0, 3, 1) && View Manager (1, 10, 2) && Walk Search History (1, 5, 3) && Overdrive Link Metadata Source (2, 53, 0)
Traceback (most recent call last):
  File "calibre_plugins.action_chains.actions.convert_books", line 186, in _on_output_button_clicked
AttributeError: 'ConfigWidget' object has no attribute 'output_options'
ownedbycats is online now   Reply With Quote
Old 12-04-2022, 01:44 PM   #968
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
OK, I uploaded a new beta.
capink is offline   Reply With Quote
Old 12-04-2022, 02:01 PM   #969
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
I just tested it (azw3 -> epub on my 'send-to-device' chain) - works as expected.
ownedbycats is online now   Reply With Quote
Old 12-04-2022, 02:04 PM   #970
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
Did you alter any settings? (input/output/common)
capink is offline   Reply With Quote
Old 12-04-2022, 02:08 PM   #971
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,615
Karma: 7891011
Join Date: Sep 2020
Device: none
Quote:
Originally Posted by capink View Post
OK, I uploaded a new beta.
Tested, working. I've seen some users requesting this not long ago, they'll surely be pleased.

I wonder if it's possible to make an action to toggle default internal viewer on the fly, I mean, to change this setting:

Click image for larger version

Name:	MWSnap0908 2022-12-04, 15_58_46.png
Views:	266
Size:	53.6 KB
ID:	198177
Comfy.n is offline   Reply With Quote
Old 12-04-2022, 02:12 PM   #972
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 Comfy.n View Post

I wonder if it's possible to make an action to toggle default internal viewer on the fly, I mean, to change this setting:

Attachment 198177
That's what the open with action is for.
capink is offline   Reply With Quote
Old 12-04-2022, 02:13 PM   #973
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
Did you alter any settings? (input/output/common)
In 'Common Options,' I set output profile to Kobo Reader.
ownedbycats is online now   Reply With Quote
Old 12-04-2022, 02:26 PM   #974
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,615
Karma: 7891011
Join Date: Sep 2020
Device: none
Quote:
Originally Posted by capink View Post
That's what the open with action is for.
I couldn't figure a way to apply the Open With action to cases like this:

Quote:
when doing FTS searches, my preferred viewer is not the system default (Sumatra). So I wanted to have Calibre default to open with internal viewer before doing FTS.
I apologise for quoting myself here

https://www.mobileread.com/forums/sh...47&postcount=5

I think I just wanted a quick toggle for setting Calibre's as the current internal viewer for EPUB, for instance, before doing FTS searches. But there are a few more use cases I don't recall atm...

edit: a quick toggle for setting the internal viewer to open EPUB formats, for instance...

Last edited by Comfy.n; 12-04-2022 at 03:39 PM.
Comfy.n is offline   Reply With Quote
Old 12-04-2022, 02:31 PM   #975
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
There is a plugin called quick preferences. I have not used it, so I am not sure it fits what you want to do. Give it try and see if does what you want.

Anyway, if you are going to use Action Chains to toggle the setting, you might as well use it to open in whatever editor you want (by binding different editor chains to different keyboard shortcuts).
capink 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 04:49 PM.


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