diff --git a/jellyfin_kodi/helper/playutils.py b/jellyfin_kodi/helper/playutils.py index ad9c377f..9c69980b 100644 --- a/jellyfin_kodi/helper/playutils.py +++ b/jellyfin_kodi/helper/playutils.py @@ -558,7 +558,7 @@ class PlayUtils(object): path = os.path.join(temp, filename) try: - response = requests.get(src, stream=True, verify=False) + response = requests.get(src, stream=True, verify=settings('sslverify.bool')) response.raise_for_status() except Exception as error: LOG.exception(error) diff --git a/jellyfin_kodi/jellyfin/api.py b/jellyfin_kodi/jellyfin/api.py index ed4d4463..67555741 100644 --- a/jellyfin_kodi/jellyfin/api.py +++ b/jellyfin_kodi/jellyfin/api.py @@ -4,10 +4,10 @@ from __future__ import division, absolute_import, print_function, unicode_litera import json import requests +from six import ensure_str from ..helper.utils import settings from ..helper import LazyLogger -from six import ensure_str LOG = LazyLogger(__name__) @@ -388,8 +388,7 @@ class API(object): "data": data } - if not settings('sslverify.bool'): - request_settings["verify"] = False + request_settings["verify"] = settings('sslverify.bool') LOG.info("Sending %s request to %s" % (method, path)) LOG.debug(request_settings['timeout'])