mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
Fix dialog for emby connect signin
This commit is contained in:
parent
c2aba7ccb6
commit
08992343a6
1 changed files with 7 additions and 7 deletions
|
@ -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,11 +126,11 @@ 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)
|
||||||
|
|
Loading…
Reference in a new issue