Fix encoding error

This commit is contained in:
angelblue05 2016-02-18 12:09:36 -06:00
parent 8e9efe9734
commit c40aa46b64
2 changed files with 5 additions and 2 deletions

View file

@ -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)

View file

@ -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)