Minor adjustments

Added logging for netflix style next up and increased webclient message
time to 4 seconds instead of 2.
This commit is contained in:
angelblue05 2015-05-18 17:21:07 -05:00
parent d878c23df0
commit d6a1a3e919
2 changed files with 2 additions and 1 deletions

View file

@ -237,7 +237,7 @@ class WebSocketThread(threading.Thread):
elif command == "DisplayMessage": elif command == "DisplayMessage":
header = arguments[u'Header'] header = arguments[u'Header']
text = arguments[u'Text'] text = arguments[u'Text']
xbmcgui.Dialog().notification(header, text) xbmcgui.Dialog().notification(header, text, time=4000)
elif command == "SendString": elif command == "SendString":
string = arguments[u'String'] string = arguments[u'String']
text = '{"jsonrpc": "2.0", "method": "Input.SendText", "params": { "text": "%s", "done": false }, "id": 0}' % string text = '{"jsonrpc": "2.0", "method": "Input.SendText", "params": { "text": "%s", "done": false }, "id": 0}' % string

View file

@ -132,6 +132,7 @@ class Service():
if (totalTime - playTime <= int(notificationtime) and (lastFile==None or lastFile!=currentFile)): if (totalTime - playTime <= int(notificationtime) and (lastFile==None or lastFile!=currentFile)):
lastFile = currentFile lastFile = currentFile
player.autoPlayPlayback() player.autoPlayPlayback()
self.logMsg("Netflix style autoplay succeeded.", 2)
except Exception, e: except Exception, e:
self.logMsg("Exception in Playback Monitor Service: %s" % e) self.logMsg("Exception in Playback Monitor Service: %s" % e)