11-01-2023, 11:26 AM | #1 |
Connoisseur
Posts: 79
Karma: 24858
Join Date: Feb 2020
Device: none
|
Is it possible to Bulk Update Plugins
I haven't used Calibre in a while so have 15 plugins eligible for update. Is there really no bulk update mechanism? It seems like I have to click Install, Yes, Ok for each plugin.
|
11-01-2023, 11:27 AM | #2 |
Connoisseur
Posts: 79
Karma: 24858
Join Date: Feb 2020
Device: none
|
As it turns out, you can just keep pressing Enter and it'll "press" those default buttons. But, still, surely there should be an Update All button? Or check boxes and Update Selected?
|
Advert | |
|
11-01-2023, 02:53 PM | #3 |
Well trained by Cats
Posts: 29,839
Karma: 54837878
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
You do not need to reboot until all PI have been updated
But you want the latest Calibre (you can run) because that determines what PI will show on the list. Unless you are on a really slow connection (dialup?) or running a really tired system Just click the buttons, it take just a few minutes. (Calibre no longer bothers with 32 bit or XP) |
11-01-2023, 03:26 PM | #4 |
Connoisseur
Posts: 79
Karma: 24858
Join Date: Feb 2020
Device: none
|
That's a peculiar response for a software tool... Software exists to automate tedious tasks. Surely it makes more sense to add a button rather than require people to "click for a few minutes"
|
11-01-2023, 04:17 PM | #5 | |
null operator (he/him)
Posts: 20,598
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
BR |
|
Advert | |
|
11-01-2023, 04:33 PM | #6 | |
Well trained by Cats
Posts: 29,839
Karma: 54837878
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
You automate frequent repetitive tasks. I have about 20 plugins. I may update a couple a month except when Kovid makes a major change. Even then, these are usually released during the beta of the new releas because mant are also backwards compatible. FWIW we have folk still on 3.48 (and maybe older) because OS+hardware just can't hack the newer stuff |
|
11-01-2023, 11:28 PM | #7 |
Grand Sorcerer
Posts: 5,659
Karma: 66420972
Join Date: Dec 2011
Location: Australia
Device: Kobo Libra 2, iPadMini4, iPad4, MBP; support other Kobo/Kindles
|
|
11-02-2023, 04:57 AM | #8 |
Grand Sorcerer
Posts: 6,245
Karma: 11768331
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Options are:
1.- Press enter for every plugin and restart only after the las one 2.- Request a calibre enhancement for doing all of them in one shot. As you prefer. |
11-02-2023, 09:34 PM | #9 |
Custom User Title
Posts: 8,682
Karma: 62000001
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
|
11-02-2023, 10:01 PM | #10 |
creator of calibre
Posts: 43,904
Karma: 22666668
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
11-02-2023, 10:04 PM | #11 |
Wizard
Posts: 1,102
Karma: 1954136
Join Date: Aug 2015
Device: Kindle
|
This can be automated by downloading the zip files into calibre plugins folder:
Code:
import os from calibre.gui2.dialogs.plugin_updater import get_plugin_updates_available from calibre.constants import ( DEBUG, __appname__, __version__ ) from calibre.utils.https import get_https_resource_securely from calibre.utils.config import config_dir plugin_dir = os.path.join(config_dir, 'plugins') exclude_update = [] def update_plugins(): total_updates = 0 for plugin in get_plugin_updates_available(): if plugin.name in exclude_update: print(f'Skip updating plugin: {plugin.name}') continue print(f'Updating plugin: {plugin.name}') raw = get_https_resource_securely(plugin.zip_url, headers={'User-Agent':f'{__appname__} {__version__}'}) plugin_path = os.path.join(plugin_dir, f'{plugin.name}.zip') total_updates += 1 with open(plugin_path, 'wb') as f: f.write(raw) if total_updates: print(f'Updated {total_updates} plugins. Restart calibre now') else: print('No plugins updated') if __name__ == '__main__': update_plugins() Last edited by capink; 11-03-2023 at 01:19 AM. |
11-03-2023, 03:46 AM | #12 |
Grand Sorcerer
Posts: 6,245
Karma: 11768331
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Must We Reinstall Plugins After Update? | abrogard | Plugins | 6 | 05-13-2022 10:02 AM |
Need to update plugins | Kaysclie | Calibre | 6 | 02-15-2021 08:54 PM |
Plugins missing after update | Enesco | Calibre | 26 | 07-21-2019 02:06 PM |
Can't update plugins | Patrick Derwael | Plugins | 5 | 11-02-2018 05:00 AM |
[Old Thread] Update plugins? | Doug Huffman | Plugins | 4 | 04-13-2011 01:02 PM |