From d6a1a3e919a79fc4f1699aaf8e1127e6bbfa08fe Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Mon, 18 May 2015 17:21:07 -0500 Subject: [PATCH] Minor adjustments Added logging for netflix style next up and increased webclient message time to 4 seconds instead of 2. --- resources/lib/WebSocketClient.py | 2 +- service.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/lib/WebSocketClient.py b/resources/lib/WebSocketClient.py index 14e074e6..2ac66801 100644 --- a/resources/lib/WebSocketClient.py +++ b/resources/lib/WebSocketClient.py @@ -237,7 +237,7 @@ class WebSocketThread(threading.Thread): elif command == "DisplayMessage": header = arguments[u'Header'] text = arguments[u'Text'] - xbmcgui.Dialog().notification(header, text) + xbmcgui.Dialog().notification(header, text, time=4000) elif command == "SendString": string = arguments[u'String'] text = '{"jsonrpc": "2.0", "method": "Input.SendText", "params": { "text": "%s", "done": false }, "id": 0}' % string diff --git a/service.py b/service.py index 26bf7042..2d99b0db 100644 --- a/service.py +++ b/service.py @@ -132,6 +132,7 @@ class Service(): if (totalTime - playTime <= int(notificationtime) and (lastFile==None or lastFile!=currentFile)): lastFile = currentFile player.autoPlayPlayback() + self.logMsg("Netflix style autoplay succeeded.", 2) except Exception, e: self.logMsg("Exception in Playback Monitor Service: %s" % e)