From c9724527b53e2ad0026024fcc3489a4e0b76c514 Mon Sep 17 00:00:00 2001 From: Marek Pawlak Date: Sun, 22 Sep 2019 13:40:59 +0200 Subject: [PATCH] Fixed TLS version for the Comic Vine (#135) * Fixed TLS version for the comicvine * Fixed TLS version for the Comic Vine - Auto-Identify and Auto-Tag functions --- comictaggerlib/comicvinetalker.py | 2 +- comictaggerlib/imagefetcher.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/comictaggerlib/comicvinetalker.py b/comictaggerlib/comicvinetalker.py index cc0d2bc..fb72df3 100644 --- a/comictaggerlib/comicvinetalker.py +++ b/comictaggerlib/comicvinetalker.py @@ -105,7 +105,7 @@ class ComicVineTalker(QObject): self.log_func = None # always use a tls context for urlopen - self.ssl = ssl.SSLContext(ssl.PROTOCOL_TLSv1) + self.ssl = ssl.SSLContext(ssl.PROTOCOL_TLS) def setLogFunc(self, log_func): self.log_func = log_func diff --git a/comictaggerlib/imagefetcher.py b/comictaggerlib/imagefetcher.py index 48baa5b..85a784e 100644 --- a/comictaggerlib/imagefetcher.py +++ b/comictaggerlib/imagefetcher.py @@ -67,7 +67,7 @@ class ImageFetcher(QObject): self.create_image_db() # always use a tls context for urlopen - self.ssl = ssl.SSLContext(ssl.PROTOCOL_TLSv1) + self.ssl = ssl.SSLContext(ssl.PROTOCOL_TLS) def clearCache(self): os.unlink(self.db_file)