Add option to disable websocket SSL cert verify

This commit is contained in:
JonnyWong16 2020-05-16 17:30:03 -07:00
commit 9a00350ffc
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -21,6 +21,7 @@ from __future__ import unicode_literals
from future.builtins import str
import json
import ssl
import threading
import time
@ -149,7 +150,7 @@ def run():
if plexpy.CONFIG.VERIFY_SSL_CERT:
sslopt = {'ca_certs': certifi.where()}
else:
sslopt = None
sslopt = {'cert_reqs': ssl.CERT_NONE}
else:
uri = 'ws://%s:%s/:/websockets/notifications' % (
plexpy.CONFIG.PMS_IP,