From 15dd6b78e6558a224f9b1d887fc1092a0a86fe94 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Fri, 3 Apr 2015 08:19:10 -0500 Subject: [PATCH] Webclient playback fixed --- resources/lib/PlaybackUtils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/lib/PlaybackUtils.py b/resources/lib/PlaybackUtils.py index 9171efe2..a96b3959 100644 --- a/resources/lib/PlaybackUtils.py +++ b/resources/lib/PlaybackUtils.py @@ -251,7 +251,7 @@ class PlaybackUtils(): for itemID in items: utils.logMsg("PlayBackUtils", "Adding Item to Playlist : " + itemID) - item_url = "http://" + server + "/mediabrowser/Users/" + userid + "/Items/" + itemID + "?format=json" + item_url = server + "/mediabrowser/Users/" + userid + "/Items/" + itemID + "?format=json" jsonData = self.downloadUtils.downloadUrl(item_url, suppress=False, popup=1 ) item_data = json.loads(jsonData) @@ -283,7 +283,7 @@ class PlaybackUtils(): for itemID in itemIds: utils.logMsg("PlayBackUtils", "Adding Item to Playlist : " + itemID) - item_url = "http://" + server + "/mediabrowser/Users/" + userid + "/Items/" + itemID + "?format=json" + item_url = server + "/mediabrowser/Users/" + userid + "/Items/" + itemID + "?format=json" jsonData = self.downloadUtils.downloadUrl(item_url, suppress=False, popup=1 ) item_data = json.loads(jsonData) @@ -319,7 +319,7 @@ class PlaybackUtils(): WINDOW.setProperty(playurl + "positionurl", positionurl) WINDOW.setProperty(playurl + "deleteurl", "") - if item.get("Type") == "Episode" and self.settings.getSetting("offerDelete")=="true": + if item.get("Type") == "Episode" and addon.getSetting("offerDelete")=="true": WINDOW.setProperty(playurl + "deleteurl", deleteurl) WINDOW.setProperty(playurl + "runtimeticks", str(item.get("RunTimeTicks")))