Allow SSL cert verify override on Plex.tv requests.

This commit is contained in:
Tim 2015-08-12 23:18:37 +02:00
commit d345893529
2 changed files with 13 additions and 4 deletions

View file

@ -89,10 +89,12 @@ class PlexTV(object):
self.protocol = 'HTTPS'
self.username = username
self.password = password
self.ssl_verify = plexpy.CONFIG.VERIFY_SSL_CERT
self.request_handler = http_handler.HTTPHandler(host='plex.tv',
port=443,
token=plexpy.CONFIG.PMS_TOKEN)
token=plexpy.CONFIG.PMS_TOKEN,
ssl_verify=self.ssl_verify)
def get_plex_auth(self, output_format='raw'):
uri = '/users/sign_in.xml'