Add IconUrl

Remove dialog when not connected.
This commit is contained in:
angelblue05 2018-07-09 17:34:13 -05:00
parent 2f2323b41a
commit 269deec562
1 changed files with 3 additions and 2 deletions

View File

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