mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 04:43:44 +02:00
Download plugins securely using HTTPS
This commit is contained in:
parent
5a24f7f51b
commit
e58def1cd7
1 changed files with 2 additions and 4 deletions
|
|
@ -24,7 +24,7 @@
|
|||
from calibre.gui2.preferences.plugins import ConfigWidget
|
||||
from calibre.utils.date import UNDEFINED_DATE, format_date
|
||||
|
||||
SERVER = 'http://plugins.calibre-ebook.com/'
|
||||
SERVER = 'https://plugins.calibre-ebook.com/'
|
||||
INDEX_URL = '%splugins.json.bz2' % SERVER
|
||||
FILTER_ALL = 0
|
||||
FILTER_INSTALLED = 1
|
||||
|
|
@ -217,8 +217,7 @@ def name_matches_filter(self, filter_text):
|
|||
return filter_text in icu_lower(self.name) # case-insensitive filtering
|
||||
|
||||
def is_upgrade_available(self):
|
||||
return self.is_installed() and (self.installed_version < self.available_version
|
||||
or self.is_deprecated)
|
||||
return self.is_installed() and (self.installed_version < self.available_version or self.is_deprecated)
|
||||
|
||||
def is_valid_platform(self):
|
||||
if iswindows:
|
||||
|
|
@ -842,4 +841,3 @@ def _download_zip(self, plugin_zip_url):
|
|||
with PersistentTemporaryFile('.zip') as pt:
|
||||
pt.write(raw)
|
||||
return pt.name
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue