From d666867219ed619db27c604691a0a8ed8bdefd57 Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Mon, 16 May 2016 19:31:28 +0200 Subject: [PATCH] Cleanup entrypoint --- resources/lib/entrypoint.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/resources/lib/entrypoint.py b/resources/lib/entrypoint.py index e97a4398..503a3fff 100644 --- a/resources/lib/entrypoint.py +++ b/resources/lib/entrypoint.py @@ -1524,15 +1524,16 @@ def getOnDeck(viewid, mediatype, tagname, limit): while utils.window('plex_authenticated') != 'true': counter += 1 if counter >= 300: + utils.logMsg(title, 'Aborting On Deck view, we were not ' + 'authenticated for the PMS', -1) return xbmcplugin.endOfDirectory(int(sys.argv[1]), False) xbmc.sleep(100) xml = downloadutils.DownloadUtils().downloadUrl( '{server}/library/sections/%s/onDeck' % viewid) if xml in (None, 401): + utils.logMsg(title, 'Could not download PMS xml for view %s' + % viewid, -1) return xbmcplugin.endOfDirectory(int(sys.argv[1])) - params = { - 'mode': "play" - } for item in xml: API = PlexAPI.API(item) listitem = API.CreateListItemFromPlexItem(