mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Further modification for service
Forgot to encode username
This commit is contained in:
parent
2de317edee
commit
324137460d
1 changed files with 4 additions and 5 deletions
|
@ -9,7 +9,7 @@ import xbmcaddon
|
||||||
import xbmc
|
import xbmc
|
||||||
import xbmcgui
|
import xbmcgui
|
||||||
|
|
||||||
addon_ = xbmcaddon.Addon()
|
addon_ = xbmcaddon.Addon(id='plugin.video.emby')
|
||||||
addon_path = addon_.getAddonInfo('path').decode('utf-8')
|
addon_path = addon_.getAddonInfo('path').decode('utf-8')
|
||||||
base_resource_path = xbmc.translatePath(os.path.join(addon_path, 'resources', 'lib')).decode('utf-8')
|
base_resource_path = xbmc.translatePath(os.path.join(addon_path, 'resources', 'lib')).decode('utf-8')
|
||||||
sys.path.append(base_resource_path)
|
sys.path.append(base_resource_path)
|
||||||
|
@ -136,8 +136,7 @@ class Service():
|
||||||
try:
|
try:
|
||||||
player.reportPlayback()
|
player.reportPlayback()
|
||||||
except Exception as msg:
|
except Exception as msg:
|
||||||
self.logMsg("Exception reporting progress: %s" % msg)
|
self.logMsg("Exception reporting progress: %s" % msg)-
|
||||||
pass
|
|
||||||
lastProgressUpdate = datetime.today()
|
lastProgressUpdate = datetime.today()
|
||||||
|
|
||||||
elif WINDOW.getProperty('commandUpdate') == "true":
|
elif WINDOW.getProperty('commandUpdate') == "true":
|
||||||
|
@ -159,13 +158,13 @@ class Service():
|
||||||
if self.welcome_msg:
|
if self.welcome_msg:
|
||||||
# Reset authentication warnings
|
# Reset authentication warnings
|
||||||
self.welcome_msg = False
|
self.welcome_msg = False
|
||||||
xbmcgui.Dialog().notification("Emby server", "Welcome %s!" % user.currUser, time=2000, sound=False)
|
xbmcgui.Dialog().notification("Emby server", "Welcome %s!" % user.currUser.decode('utf-8').encode('utf-8'), time=2000, sound=False)
|
||||||
|
|
||||||
# Start the Websocket Client
|
# Start the Websocket Client
|
||||||
if (self.newWebSocketThread == None):
|
if (self.newWebSocketThread == None):
|
||||||
self.newWebSocketThread = "Started"
|
self.newWebSocketThread = "Started"
|
||||||
ws.start()
|
ws.start()
|
||||||
|
# Start the Library Sync Thread
|
||||||
if (self.newLibraryThread == None):
|
if (self.newLibraryThread == None):
|
||||||
self.newLibraryThread = "Started"
|
self.newLibraryThread = "Started"
|
||||||
library.start()
|
library.start()
|
||||||
|
|
Loading…
Reference in a new issue