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-01-2023, 11:26 AM   #1
nixsee
Connoisseur
nixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notes
 
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.
nixsee is offline   Reply With Quote
Old 11-01-2023, 11:27 AM   #2
nixsee
Connoisseur
nixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notes
 
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?
nixsee is offline   Reply With Quote
Advert
Old 11-01-2023, 02:53 PM   #3
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,799
Karma: 54830978
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)
theducks is offline   Reply With Quote
Old 11-01-2023, 03:26 PM   #4
nixsee
Connoisseur
nixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notes
 
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"
nixsee is offline   Reply With Quote
Old 11-01-2023, 04:17 PM   #5
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,567
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by nixsee View Post
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"
How to make a formal request for an Enhancement is described here ==>> calibre - Bugs

BR
BetterRed is online now   Reply With Quote
Advert
Old 11-01-2023, 04:33 PM   #6
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,799
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by nixsee View Post
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"
How often do most people need to do BULK plugins?
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
theducks is offline   Reply With Quote
Old 11-01-2023, 11:28 PM   #7
meeera
Grand Sorcerer
meeera ought to be getting tired of karma fortunes by now.meeera ought to be getting tired of karma fortunes by now.meeera ought to be getting tired of karma fortunes by now.meeera ought to be getting tired of karma fortunes by now.meeera ought to be getting tired of karma fortunes by now.meeera ought to be getting tired of karma fortunes by now.meeera ought to be getting tired of karma fortunes by now.meeera ought to be getting tired of karma fortunes by now.meeera ought to be getting tired of karma fortunes by now.meeera ought to be getting tired of karma fortunes by now.meeera ought to be getting tired of karma fortunes by now.
 
meeera's Avatar
 
Posts: 5,658
Karma: 66417824
Join Date: Dec 2011
Location: Australia
Device: Kobo Libra 2, iPadMini4, iPad4, MBP; support other Kobo/Kindles
Quote:
Originally Posted by nixsee View Post
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.
Install, Enter, Enter. It takes less than three seconds.
meeera is offline   Reply With Quote
Old 11-02-2023, 04:57 AM   #8
Terisa de morgan
Grand Sorcerer
Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.
 
Terisa de morgan's Avatar
 
Posts: 6,233
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.
Terisa de morgan is offline   Reply With Quote
Old 11-02-2023, 09:34 PM   #9
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: 8,608
Karma: 61176603
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by Terisa de morgan View Post
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.
Unfortunately, I did 2. once and Kovid marked as wontfix.
ownedbycats is offline   Reply With Quote
Old 11-02-2023, 10:01 PM   #10
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,853
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by ownedbycats View Post
Unfortunately, I did 2. once and Kovid marked as wontfix.
Yup I have no interest in spending my time on this, higher priority things to do, patches are welcome.
kovidgoyal is offline   Reply With Quote
Old 11-02-2023, 10:04 PM   #11
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,089
Karma: 1948136
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()
After running the command, you will need to restart calibre. Also don't forget to backup your calibre plugins folder in case something goes wrong.

Last edited by capink; 11-03-2023 at 01:19 AM.
capink is offline   Reply With Quote
Old 11-03-2023, 03:46 AM   #12
Terisa de morgan
Grand Sorcerer
Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.
 
Terisa de morgan's Avatar
 
Posts: 6,233
Karma: 11768331
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
Quote:
Originally Posted by ownedbycats View Post
Unfortunately, I did 2. once and Kovid marked as wontfix.
Sorry, I didn't know as I have zero interest in bulk update I was only trying to summarize for OP.
Terisa de morgan is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 04:39 AM.


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