Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 08-17-2024, 09:17 AM   #1381
foosion
Evangelist
foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.
 
Posts: 432
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
Quote:
Originally Posted by ownedbycats View Post
Probably not as expected. When I run "sync now" from an action chain it just silently fails half the time and I have to run it manually.
Does this help

https://www.mobileread.com/forums/sh...postcount=1363
foosion is offline   Reply With Quote
Old 08-17-2024, 06:05 PM   #1382
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: 9,508
Karma: 64500003
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
The 'sync now' issue is only an issue when I run the send-to-device or remove-from-device chains while the device is already connected (otherwise it runs on next sync) so I'm not inclined to go mucking around with my workflow.

Last edited by ownedbycats; 08-17-2024 at 06:11 PM.
ownedbycats is online now   Reply With Quote
Old 08-18-2024, 03:29 PM   #1383
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,248
Karma: 6426810
Join Date: Sep 2020
Device: Calibre E-book viewer
Hi folks, I've been getting some glitch upon double-clicking files on list view. Can't remember when it started to happen, unfortunately. Before going into the description, let me state clearly what conditions don't trigger the error message:

a) double-clicking in Cover grid view is unaffected.

b) it doesn't happen when the event "Book List Double Clicked" is unchecked.

Now I'll try to explain. I have a chain with the following actions, kindly provided by ownedbycats, that runs on event "Book List Double Clicked":

- open book
- set #lastread
- Increment #timesread
- add date to #readdates

On list view, when I double-click the title of a book that contains a PDF format (which is my default "preferred input format" in Behaviour preferences, for double-clicking priority purposes), it runs the chain fine, sets all fields correctly. However, when I task-switch back to Calibre from my default system PDF program, the title cell shows as if waiting for an input, I mean, it's been inadvertently selected for editing, as if I had pressed F2.

What happens next is that, even without making any changes to the title field, when I click anywhere outside the title cell, I get the message in the attached log - "PermissionError: [WinError 32] The process cannot access the file because it is being used by another process"

Also, that will occur either when I have the tweak doubleclick_on_library_view set to 'open_viewer' or to 'do_nothing'. Since I started using this chain, I use the latter (do_nothing).

I wonder if some tweak to the "Book List Double Clicked" event or to the chain itself could prevent that?
Attached Thumbnails
Click image for larger version

Name:	MWSnap 2024-08-18, 16_20_00.png
Views:	98
Size:	10.1 KB
ID:	210260   Click image for larger version

Name:	2024-08-18 15_43_41-Add actions.png
Views:	104
Size:	26.2 KB
ID:	210261  
Attached Files
File Type: zip chain.zip (2.5 KB, 83 views)
File Type: txt log_dclic.txt (1.8 KB, 59 views)

Last edited by Comfy.n; 08-19-2024 at 04:43 PM.
Comfy.n is offline   Reply With Quote
Old 08-18-2024, 03:35 PM   #1384
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: 9,508
Karma: 64500003
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Won't help with the unintentional selection, but the esc key should back out of accidental edits without the error.
ownedbycats is online now   Reply With Quote
Old 08-18-2024, 03:49 PM   #1385
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,248
Karma: 6426810
Join Date: Sep 2020
Device: Calibre E-book viewer
Quote:
Originally Posted by ownedbycats View Post
Won't help with the unintentional selection, but the esc key should back out of accidental edits without the error.
yes, I've too found esc is a quick workaround for that.. but only after the error message, which is what I'm wondering if can be prevented

edit: well, what I actually wanted to mean is that pressing Esc prevents the message, but there's something else related to focus I can't precisely describe

Last edited by Comfy.n; 08-18-2024 at 05:22 PM.
Comfy.n is offline   Reply With Quote
Old 08-19-2024, 03:40 AM   #1386
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,137
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
I am not able to replicate. If by any chance you have the following plugin tweak set:

Code:
action_chains_single_click_edit = True
Try removing it and restart calibre, and see whether it makes a difference. This was useful to solve a problem that seem to have been resolved in recent calibre versions.
capink is offline   Reply With Quote
Old 08-19-2024, 03:59 AM   #1387
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,248
Karma: 6426810
Join Date: Sep 2020
Device: Calibre E-book viewer
Quote:
Originally Posted by capink View Post
I am not able to replicate. If by any chance you have the following plugin tweak set:

Code:
action_chains_single_click_edit = True
Try removing it and restart calibre, and see whether it makes a difference. This was useful to solve a problem that seem to have been resolved in recent calibre versions.
yes, that was it!

once I removed that plugin tweak, issue is resolved!

I can't remember why I've needed to set it, by the way, but hopefully this removal won't affect other chains.

Comfy.n is offline   Reply With Quote
Old 08-19-2024, 10:40 AM   #1388
foosion
Evangelist
foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.
 
Posts: 432
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
I have an action chain:

1) Send to device, main memory
2) Single edit to put a check mark in a user column
3) Eject

If I have "show progress bar" and "wait until any jobs started by the selected action finishes" checked for the send, then it does not appear to wait and does not eject. If I uncheck progress bar it works. Checking both "show progress bar" and "wait until any progress bar finishes", then sometimes I get an error about device not connected.


Is this what it's supposed to do? Is there something else I should check or uncheck?
foosion is offline   Reply With Quote
Old 08-19-2024, 01:34 PM   #1389
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 76,326
Karma: 136006010
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by foosion View Post
I have an action chain:

1) Send to device, main memory
2) Single edit to put a check mark in a user column
3) Eject

If I have "show progress bar" and "wait until any jobs started by the selected action finishes" checked for the send, then it does not appear to wait and does not eject. If I uncheck progress bar it works. Checking both "show progress bar" and "wait until any progress bar finishes", then sometimes I get an error about device not connected.


Is this what it's supposed to do? Is there something else I should check or uncheck?
But you then need to reconnect to add the rest of the missing metadata such as the blurb, page numbers, reading time, columns, and series (if you are not using NickelSeries).
JSWolf is offline   Reply With Quote
Old 08-19-2024, 02:20 PM   #1390
foosion
Evangelist
foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.
 
Posts: 432
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
Quote:
Originally Posted by JSWolf View Post
But you then need to reconnect to add the rest of the missing metadata such as the blurb, page numbers, reading time, columns, and series (if you are not using NickelSeries).
I believe this is the third time you've made the some reconnect comment, which alas does not answer the question.
foosion is offline   Reply With Quote
Old 08-19-2024, 04:14 PM   #1391
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,248
Karma: 6426810
Join Date: Sep 2020
Device: Calibre E-book viewer
Quote:
Originally Posted by capink View Post
Code:
action_chains_single_click_edit = True
Try removing it and restart calibre[...]
Oh well, I realised single-click editing on list view is actually indispensable to me, so I did some extra testing and I guess I found something worth mentioning.

After reinstating the action_chains_single_click_edit plugin tweak, I tested different double-click speeds, either by alternating between purposely delayed double-clicks and fast ones or by changing the double-click speed setting on Control Panel (setting it to the fastest level available).

I'm still testing those settings but as of now I can "double-click to open" on list view without having that issue most times. It seems that the higher the double-click speed, meaning lower interval between the first and the second click, the less likely is that the issue will arise.

edit to add: actually I totally forgot that I had that tweak in place, so at some point I started to think it was a core Calibre option :amnesia_smiley:

Last edited by Comfy.n; 08-19-2024 at 04:38 PM.
Comfy.n is offline   Reply With Quote
Old 08-23-2024, 03:41 AM   #1392
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: 9,508
Karma: 64500003
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Question: I have a custom kobo: identifier mapped to https://www.kobo.com/ca/en/ebook/{id} (this was previously used by the now-nonfunctional Kobo Books plugin).

I'd like to add to a chain to paste a URL (e.g. https://www.kobo.com/ca/en/ebook/some-random-book) into a dialog and automatically add the id to the book. Is this possible?

I tried putting a single-field edit but it didn't have the Paste from Clipboard button.

Last edited by ownedbycats; 08-23-2024 at 03:57 AM.
ownedbycats is online now   Reply With Quote
Old 08-24-2024, 01:26 AM   #1393
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,137
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
The custom action below would store clipboard contents into a chain variable called clipboard:

Code:
from qt.core import QApplication
from calibre_plugins.action_chains.actions.base import ChainAction

class PasteClipboardAction(ChainAction):

    name = 'Paste Clipboard'

    def run(self, gui, settings, chain):
        chain.set_chain_vars({'clipboard': QApplication.clipboard().text()})
You can access that using the following template

Code:
program:
    globals(clipboard)
capink is offline   Reply With Quote
Old 10-01-2024, 09:29 AM   #1394
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: 9,508
Karma: 64500003
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Question: I use an Action Chain that runs upon "FanFicFare download finished" with the event manager. I think the event was included in the FFF plugin itself.

It uses a selection modifier to grab the newly-downloaded fanfics and then calls a chain which does several single-field edits (mostly template'd) as well as runs the comments cleaner.

However, if I alt-tab out of the window at any point after using FFF to confirm library update, there's some 50% chance that the Calibre UI will become unusable— I just get the error sound when clicking anything as though it's stuck under an invisible dialog. This doesn't happen if I remove the event, and I can't get it to trigger by alt+tabbing while manually running the chains (either the 'cleanup: fanfiction' or the 'FanFicFare Download' one with the selection modifier).

Has anyone else had issues like this?
ownedbycats is online now   Reply With Quote
Old 10-12-2024, 07:20 PM   #1395
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: 9,508
Karma: 64500003
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
I'd like to make a chain that does arithmetic on a floating-point column and then adds the results from all selected books together. How would I go about this?

Code:
program: format_number($$#purchasecost - format_number($$#purchasecost/1.15, '.2f'), '.2f')
For context, was just curious how much of the value of my library is in sales tax.
ownedbycats is online now   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Editor Plugin] Editor Chains capink Plugins 94 07-03-2024 07:26 PM
Action Chains Resources capink Plugins 65 07-01-2024 03:12 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 06:59 PM.


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