12-03-2020, 12:41 AM | #76 |
Custom User Title
Posts: 9,353
Karma: 63297233
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Smallish unintended effect: I wanted to have an action set a bool column to undefined. I couldn't.
Code:
calibre, version 5.6.0 ERROR: Undefined value: Predefined options chosen without specifying a value Perhaps could be also added a fourth option in Single Field Edit: "Clear current value"? Last edited by ownedbycats; 12-03-2020 at 12:45 AM. |
12-03-2020, 12:43 AM | #77 | |
Grand Sorcerer
Posts: 6,365
Karma: 12117217
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Quote:
Last edited by Terisa de morgan; 12-03-2020 at 04:20 AM. |
|
Advert | |
|
12-03-2020, 05:21 PM | #78 |
Wizard
Posts: 1,134
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
version 0.3.0
Version 0.2.0
Version 0.2.1
Version 0.3.0
|
12-04-2020, 06:25 AM | #79 |
Wizard
Posts: 1,134
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
I can incorporate the changes you made to make it work better with calibre 4 if that makes it easier for you. But you still have to change the minor version in the plugin each time you download a new version.
|
12-04-2020, 02:29 PM | #80 | |
Grand Sorcerer
Posts: 6,365
Karma: 12117217
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Quote:
Code:
# button.clicked.connect(lambda *args, ix=index: self.clicked.emit(ix)) |
|
Advert | |
|
12-04-2020, 02:54 PM | #81 | |
Wizard
Posts: 1,134
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
Quote:
|
|
12-06-2020, 03:54 PM | #82 |
Chalut o/
Posts: 420
Karma: 145424
Join Date: Dec 2017
Device: Kobo
|
Thanks
Hello capink
I would like to thank you, because thanks to your code I was able to create my plugin Mass Search/Replace . It is only designed for Search and Replace operations (and therefore much less complex than yours), but I hope it does it well. Thank you again, you cleared the way by extracting the Search/Replace module, and without you it wouldn't exist. |
12-06-2020, 04:13 PM | #83 | |
Wizard
Posts: 1,134
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
Quote:
|
|
12-07-2020, 01:29 PM | #84 |
Chalut o/
Posts: 420
Karma: 145424
Join Date: Dec 2017
Device: Kobo
|
Small exchange of good process:
I discover a bug in the test result field of "Search and Replace" module. https://www.mobileread.com/forums/sh...d.php?t=335440 Moreover in your code there is a #FIXME: THE PROBLEM IS HERE, but I think it was rather the opposite: s_r_do_regexp() has the expected behavior, is the test result field in s_r_paint_results() which is not valid. |
12-07-2020, 01:44 PM | #85 | |
Wizard
Posts: 1,134
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
Quote:
The "#FIXME: THE PROBLEM IS HERE" was in reference to what I thought was a bug, but turned out to be difference in behavior between python2 and python3. I have removed that comment in the latest version. |
|
12-12-2020, 06:03 AM | #86 |
Interested in the matter
Posts: 421
Karma: 426094
Join Date: Dec 2011
Location: Spain, south coast
Device: Pocketbook InkPad 3
|
I use the Job Spy tool: Import CSV File to Update Metadata, with several csv files.
Once the corresponding Calibre Action has been created, is there a possibility to tell it which file to open? |
12-12-2020, 08:30 AM | #87 |
Wizard
Posts: 1,134
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
I just installed the JS plugin and unfortunately the answer is no as this is part of the workflow of the plugin. But I am curious as to why you want to bypass this, as it will still pop up a dialog afterwards, so it will always be an interactive step.
I maintain the Import List plugin that has similar functionality, I will look if there is something that can done there (through custom actions), but I am not so sure. The problem is that matching the books is always an interactive step even if we pre-define the csv file. The advantage in the import list is that it allows for predefined settings, but you will still have to deal with the plugin wizard after the settings are applied |
12-12-2020, 02:27 PM | #88 |
Custom User Title
Posts: 9,353
Karma: 63297233
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
I'm assuming that jbacelar always uses the same fileset.
EDIT: Unless I'm misunderstanding. Last edited by ownedbycats; 12-12-2020 at 09:18 PM. |
12-13-2020, 02:14 AM | #89 |
Interested in the matter
Posts: 421
Karma: 426094
Join Date: Dec 2011
Location: Spain, south coast
Device: Pocketbook InkPad 3
|
|
12-13-2020, 12:29 PM | #90 |
Wizard
Posts: 1,134
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
Running an pre-configured import csv action is something I might use myself, so I will be looking at it as soon as I have the time to do so (maybe next weekend).
If done, it will use the Import List plugin since that is what I use and its the code-base I am familiar with. |
|
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 |