mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-24 17:56:11 +00:00
Fix encoding error
This commit is contained in:
parent
8e9efe9734
commit
c40aa46b64
2 changed files with 5 additions and 2 deletions
|
@ -383,7 +383,8 @@ class UserClient(threading.Thread):
|
|||
|
||||
if accessToken is not None:
|
||||
self.currUser = username
|
||||
dialog.notification("Emby for Kodi", "%s %s!" % (lang(33000), self.currUser), 1)
|
||||
dialog.notification("Emby for Kodi",
|
||||
"%s %s!" % (lang(33000), self.currUser.decode('utf-8')))
|
||||
userId = result['User']['Id']
|
||||
settings('accessToken', value=accessToken)
|
||||
settings('userId%s' % username, value=userId)
|
||||
|
|
|
@ -178,7 +178,9 @@ class Service():
|
|||
add = ""
|
||||
xbmcgui.Dialog().notification(
|
||||
heading="Emby for Kodi",
|
||||
message="%s %s%s!" % (lang(33000), user.currUser, add),
|
||||
message=("%s %s%s!"
|
||||
% (lang(33000), user.currUser.decode('utf-8'),
|
||||
add.decode('utf-8'))),
|
||||
icon="special://home/addons/plugin.video.emby/icon.png",
|
||||
time=2000,
|
||||
sound=False)
|
||||
|
|
Loading…
Reference in a new issue