From 2de317edee340dc5e698d5800fa4073736b22571 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Tue, 16 Jun 2015 02:11:38 -0500 Subject: [PATCH] Quick adjustment First if will be xbmc playing for quicker report progress --- service.py | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/service.py b/service.py index 097dde87..2bde048d 100644 --- a/service.py +++ b/service.py @@ -115,23 +115,6 @@ class Service(): # Emby server is online # Verify if user is set and has access to the server if (user.currUser != None) and user.HasAccess: - - self.warn_auth = True - if addon.getSetting('supressConnectMsg') == "false": - if self.welcome_msg: - # Reset authentication warnings - self.welcome_msg = False - xbmcgui.Dialog().notification("Emby server", "Welcome %s!" % user.currUser, time=2000, sound=False) - - # Start the Websocket Client - if (self.newWebSocketThread == None): - self.newWebSocketThread = "Started" - ws.start() - - # Start the LibrarySync Thread - if (self.newLibraryThread == None): - self.newLibraryThread = "Started" - library.start() # If an item is playing if xbmc.Player().isPlaying(): @@ -169,6 +152,23 @@ class Service(): except Exception as e: self.logMsg("Exception in Playback Monitor Service: %s" % e) pass + else: + # Start up events + self.warn_auth = True + if addon.getSetting('supressConnectMsg') == "false": + if self.welcome_msg: + # Reset authentication warnings + self.welcome_msg = False + xbmcgui.Dialog().notification("Emby server", "Welcome %s!" % user.currUser, time=2000, sound=False) + + # Start the Websocket Client + if (self.newWebSocketThread == None): + self.newWebSocketThread = "Started" + ws.start() + + if (self.newLibraryThread == None): + self.newLibraryThread = "Started" + library.start() else: