From 263d3e75462184bbf5cafdd012b1200960ea4e34 Mon Sep 17 00:00:00 2001 From: panni Date: Sun, 29 Nov 2015 04:05:18 +0100 Subject: [PATCH] use http by default, not https, for local API queries --- Contents/Code/support/items.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Contents/Code/support/items.py b/Contents/Code/support/items.py index a338192b..609d69a0 100644 --- a/Contents/Code/support/items.py +++ b/Contents/Code/support/items.py @@ -31,7 +31,7 @@ def getSectionSize(key): :return: """ size = None - url = "https://127.0.0.1:32400/library/sections/%s/all" % int(key) + url = "http://127.0.0.1:32400/library/sections/%s/all" % int(key) use_args = { "X-Plex-Container-Size": "0", "X-Plex-Container-Start": "0" @@ -136,7 +136,7 @@ def getRecentItems(): if section.type == "show": use_args["type"] = "4" - url = "https://127.0.0.1:32400/library/sections/%s/all" % int(section.key) + url = "http://127.0.0.1:32400/library/sections/%s/all" % int(section.key) response = query_plex(url, use_args) matcher = episode_re if section.type == "show" else movie_re