Private GIT

Skip to content
Snippets Groups Projects
Commit 44cda312 authored by Fernando's avatar Fernando
Browse files

Fix SiCKRAGETV/sickrage-issues/issues/3286

parent 66907b45
Branches
Tags
No related merge requests found
...@@ -66,7 +66,7 @@ class PLEXNotifier: ...@@ -66,7 +66,7 @@ class PLEXNotifier:
enc_command = urllib.urlencode(command) enc_command = urllib.urlencode(command)
logger.log(u'PLEX: Encoded API command: ' + enc_command, logger.DEBUG) logger.log(u'PLEX: Encoded API command: ' + enc_command, logger.DEBUG)
url = u'http://%s/xbmcCmds/xbmcHttp/?%s' % (host, enc_command) url = u'https://%s/xbmcCmds/xbmcHttp/?%s' % (host, enc_command)
try: try:
req = urllib2.Request(url) req = urllib2.Request(url)
# if we have a password, use authentication # if we have a password, use authentication
...@@ -219,7 +219,7 @@ class PLEXNotifier: ...@@ -219,7 +219,7 @@ class PLEXNotifier:
hosts_failed = [] hosts_failed = []
for cur_host in host_list: for cur_host in host_list:
url = 'http://%s/library/sections%s' % (cur_host, token_arg) url = 'https://%s/library/sections%s' % (cur_host, token_arg)
try: try:
xml_tree = etree.parse(urllib.urlopen(url)) xml_tree = etree.parse(urllib.urlopen(url))
media_container = xml_tree.getroot() media_container = xml_tree.getroot()
...@@ -261,7 +261,7 @@ class PLEXNotifier: ...@@ -261,7 +261,7 @@ class PLEXNotifier:
host_list = [] host_list = []
for section_key, cur_host in hosts_try.iteritems(): for section_key, cur_host in hosts_try.iteritems():
url = 'http://%s/library/sections/%s/refresh%s' % (cur_host, section_key, token_arg) url = 'https://%s/library/sections/%s/refresh%s' % (cur_host, section_key, token_arg)
try: try:
force and urllib.urlopen(url) force and urllib.urlopen(url)
host_list.append(cur_host) host_list.append(cur_host)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment