mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06: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:
|
if accessToken is not None:
|
||||||
self.currUser = username
|
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']
|
userId = result['User']['Id']
|
||||||
settings('accessToken', value=accessToken)
|
settings('accessToken', value=accessToken)
|
||||||
settings('userId%s' % username, value=userId)
|
settings('userId%s' % username, value=userId)
|
||||||
|
|
|
@ -178,7 +178,9 @@ class Service():
|
||||||
add = ""
|
add = ""
|
||||||
xbmcgui.Dialog().notification(
|
xbmcgui.Dialog().notification(
|
||||||
heading="Emby for Kodi",
|
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",
|
icon="special://home/addons/plugin.video.emby/icon.png",
|
||||||
time=2000,
|
time=2000,
|
||||||
sound=False)
|
sound=False)
|
||||||
|
|
Loading…
Reference in a new issue