Quick adjustment
First if will be xbmc playing for quicker report progress
This commit is contained in:
parent
aa745f1fcc
commit
2de317edee
1 changed files with 17 additions and 17 deletions
34
service.py
34
service.py
|
@ -116,23 +116,6 @@ class Service():
|
|||
# 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():
|
||||
try:
|
||||
|
@ -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:
|
||||
|
||||
|
|
Loading…
Reference in a new issue