Remove raised error

Just log it in and return nothing.
This commit is contained in:
angelblue05 2018-07-19 23:59:51 -05:00
parent a18ed5c304
commit 61dd0aa9e0
2 changed files with 6 additions and 1 deletions

View file

@ -235,7 +235,9 @@ class DownloadUtils(object):
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.")
raise Exception("Aborting download, Server Details Error: %s url=%s" % (server, url))
#raise Exception("Aborting download, Server Details Error: %s url=%s" % (server, url))
log.error("Aborting download, Server Details Error: %s url=%s", server, url)
return
if server_id is None and self.session_requests is not None: # Main server
session = self.session_requests

View file

@ -44,6 +44,9 @@ XML_PATH = (addon.getAddonInfo('path'), "default", "1080i")
def doPlayback(itemId, dbId):
if window('emby_online') != "true":
return
emby = embyserver.Read_EmbyServer()
item = emby.getItem(itemId)
pbutils.PlaybackUtils(item).play(itemId, dbId)