mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 10:16:11 +00:00
Add IconUrl
Remove dialog when not connected.
This commit is contained in:
parent
2f2323b41a
commit
269deec562
1 changed files with 3 additions and 2 deletions
|
@ -114,7 +114,8 @@ class DownloadUtils(object):
|
||||||
"SetRepeatMode,"
|
"SetRepeatMode,"
|
||||||
"Mute,Unmute,SetVolume,"
|
"Mute,Unmute,SetVolume,"
|
||||||
"Play,Playstate,PlayNext,PlayMediaSource"
|
"Play,Playstate,PlayNext,PlayMediaSource"
|
||||||
)
|
),
|
||||||
|
'IconUrl': "https://kodi.wiki/images/8/8e/Thumbnail-symbol-transparent.png",
|
||||||
}
|
}
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
@ -233,7 +234,7 @@ class DownloadUtils(object):
|
||||||
requires_server = True
|
requires_server = True
|
||||||
|
|
||||||
if requires_server and (not server or not server.get("Server") or not server.get("UserId")):
|
if requires_server and (not server or not server.get("Server") or not server.get("UserId")):
|
||||||
xbmcgui.Dialog().ok('Emby for Kodi', "You are not connected to your emby server.")
|
#xbmcgui.Dialog().ok('Emby for Kodi', "You are not connected to your emby server.")
|
||||||
raise Exception("Aborting download, Server Details Error: %s url=%s" % (server, url))
|
raise Exception("Aborting download, Server Details Error: %s url=%s" % (server, url))
|
||||||
|
|
||||||
if server_id is None and self.session_requests is not None: # Main server
|
if server_id is None and self.session_requests is not None: # Main server
|
||||||
|
|
Loading…
Reference in a new issue