Fix dialog for emby connect signin

This commit is contained in:
angelblue05 2016-09-10 16:39:15 -05:00
parent c2aba7ccb6
commit 08992343a6

View file

@ -26,7 +26,7 @@ import playlist
import playbackutils as pbutils import playbackutils as pbutils
import playutils import playutils
import api import api
from utils import window, settings, language as lang from utils import window, settings, dialog, language as lang
################################################################################################# #################################################################################################
@ -126,12 +126,12 @@ def emby_connect():
user = connectUser['User'] user = connectUser['User']
token = connectUser['AccessToken'] token = connectUser['AccessToken']
username = user['Name'] username = user['Name']
icon = user.get('ImageUrl') or "special://home/addons/plugin.video.emby/icon.png" dialog(type_="notification",
xbmcgui.Dialog().notification(heading=lang(29999), heading="{emby}",
message="%s %s" % (lang(33000), username.decode('utf-8')), message="%s %s" % (lang(33000), username.decode('utf-8')),
icon=icon, icon=user.get('ImageUrl') or "{emby}",
time=1500, time=2000,
sound=False) sound=False)
settings('connectUsername', value=username) settings('connectUsername', value=username)