Private GIT

Skip to content
Snippets Groups Projects
Commit 71c584d2 authored by miigotu's avatar miigotu
Browse files

Merge pull request #2907 from OmgImAlexis/revert-2886-plex_https

Revert "Fix SiCKRAGETV/sickrage-issues/issues/3286"
parents 36cf8d8e ade58f31
Branches
Tags
No related merge requests found
......@@ -66,7 +66,7 @@ class PLEXNotifier:
enc_command = urllib.urlencode(command)
logger.log(u'PLEX: Encoded API command: ' + enc_command, logger.DEBUG)
url = u'https://%s/xbmcCmds/xbmcHttp/?%s' % (host, enc_command)
url = u'http://%s/xbmcCmds/xbmcHttp/?%s' % (host, enc_command)
try:
req = urllib2.Request(url)
# if we have a password, use authentication
......@@ -219,7 +219,7 @@ class PLEXNotifier:
hosts_failed = []
for cur_host in host_list:
url = 'https://%s/library/sections%s' % (cur_host, token_arg)
url = 'http://%s/library/sections%s' % (cur_host, token_arg)
try:
xml_tree = etree.parse(urllib.urlopen(url))
media_container = xml_tree.getroot()
......@@ -261,7 +261,7 @@ class PLEXNotifier:
host_list = []
for section_key, cur_host in hosts_try.iteritems():
url = 'https://%s/library/sections/%s/refresh%s' % (cur_host, section_key, token_arg)
url = 'http://%s/library/sections/%s/refresh%s' % (cur_host, section_key, token_arg)
try:
force and urllib.urlopen(url)
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