Add config option to force SSL connections to PMS.

This commit is contained in:
Tim 2015-07-17 01:09:27 +02:00
parent 4f00ecc070
commit 61daedf1a5
3 changed files with 12 additions and 2 deletions

View file

@ -24,7 +24,10 @@ class PmsConnect(object):
"""
def __init__(self):
self.protocol = 'HTTP'
if plexpy.CONFIG.PMS_SSL:
self.protocol = 'HTTPS'
else:
self.protocol = 'HTTP'
self.request_handler = http_handler.HTTPHandler(host=plexpy.CONFIG.PMS_IP,
port=plexpy.CONFIG.PMS_PORT,
token=plexpy.CONFIG.PMS_TOKEN)