mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 10:46:11 +00:00
Add latest changes
This commit is contained in:
parent
23b9f000e7
commit
ef1a88db79
1 changed files with 11 additions and 7 deletions
12
service.py
12
service.py
|
@ -31,6 +31,7 @@ class Service():
|
||||||
librarySync = LibrarySync()
|
librarySync = LibrarySync()
|
||||||
|
|
||||||
addonName = clientInfo.getAddonName()
|
addonName = clientInfo.getAddonName()
|
||||||
|
logLevel = UserClient().getLogLevel()
|
||||||
WINDOW = xbmcgui.Window(10000)
|
WINDOW = xbmcgui.Window(10000)
|
||||||
|
|
||||||
newWebSocketThread = None
|
newWebSocketThread = None
|
||||||
|
@ -43,6 +44,7 @@ class Service():
|
||||||
|
|
||||||
addonName = self.addonName
|
addonName = self.addonName
|
||||||
WINDOW = self.WINDOW
|
WINDOW = self.WINDOW
|
||||||
|
WINDOW.setProperty('getLogLevel', str(self.logLevel))
|
||||||
|
|
||||||
# Initial logging
|
# Initial logging
|
||||||
self.logMsg("Starting Monitor", 0)
|
self.logMsg("Starting Monitor", 0)
|
||||||
|
@ -50,7 +52,7 @@ class Service():
|
||||||
self.logMsg("Platform: %s" % (self.clientInfo.getPlatform()), 0)
|
self.logMsg("Platform: %s" % (self.clientInfo.getPlatform()), 0)
|
||||||
self.logMsg("KODI Version: %s" % xbmc.getInfoLabel('System.BuildVersion'), 0)
|
self.logMsg("KODI Version: %s" % xbmc.getInfoLabel('System.BuildVersion'), 0)
|
||||||
self.logMsg("%s Version: %s" % (addonName, self.clientInfo.getVersion()), 0)
|
self.logMsg("%s Version: %s" % (addonName, self.clientInfo.getVersion()), 0)
|
||||||
self.logMsg("Log Level: %s" % UserClient().getLogLevel(), 1)
|
self.logMsg("Log Level: %s" % self.logLevel, 1)
|
||||||
|
|
||||||
# Reset window props for profile switch
|
# Reset window props for profile switch
|
||||||
WINDOW.clearProperty('Server_online')
|
WINDOW.clearProperty('Server_online')
|
||||||
|
@ -86,6 +88,7 @@ class Service():
|
||||||
def ServiceEntryPoint(self):
|
def ServiceEntryPoint(self):
|
||||||
|
|
||||||
WINDOW = self.WINDOW
|
WINDOW = self.WINDOW
|
||||||
|
addon = xbmcaddon.Addon()
|
||||||
|
|
||||||
# Server auto-detect
|
# Server auto-detect
|
||||||
ConnectionManager().checkServer()
|
ConnectionManager().checkServer()
|
||||||
|
@ -112,11 +115,12 @@ class Service():
|
||||||
# Verify if user is set and has access to the server
|
# Verify if user is set and has access to the server
|
||||||
if (user.currUser != None) and user.HasAccess:
|
if (user.currUser != None) and user.HasAccess:
|
||||||
|
|
||||||
|
self.warn_auth = True
|
||||||
|
if addon.getSetting('supressConnectMsg') == "false":
|
||||||
if self.welcome_msg:
|
if self.welcome_msg:
|
||||||
# Reset authentication warnings
|
# Reset authentication warnings
|
||||||
self.welcome_msg = False
|
self.welcome_msg = False
|
||||||
self.warn_auth = True
|
xbmcgui.Dialog().notification("Emby server", "Welcome %s!" % user.currUser, time=2000, sound=False)
|
||||||
xbmcgui.Dialog().notification("Emby server", "Welcome %s!" % user.currUser, sound=False)
|
|
||||||
|
|
||||||
# Start the Websocket Client
|
# Start the Websocket Client
|
||||||
if (self.newWebSocketThread == None):
|
if (self.newWebSocketThread == None):
|
||||||
|
@ -242,7 +246,7 @@ class Service():
|
||||||
|
|
||||||
# If user reset library database.
|
# If user reset library database.
|
||||||
if WINDOW.getProperty('SyncInstallRunDone') == "false":
|
if WINDOW.getProperty('SyncInstallRunDone') == "false":
|
||||||
addon = xbmcaddon.Addon('plugin.video.emby')
|
addon = xbmcaddon.Addon()
|
||||||
addon.setSetting('SyncInstallRunDone', "false")
|
addon.setSetting('SyncInstallRunDone', "false")
|
||||||
|
|
||||||
if (self.newWebSocketThread != None):
|
if (self.newWebSocketThread != None):
|
||||||
|
|
Loading…
Reference in a new issue