mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Remove raised error
Just log it in and return nothing.
This commit is contained in:
parent
a18ed5c304
commit
61dd0aa9e0
2 changed files with 6 additions and 1 deletions
|
@ -235,7 +235,9 @@ class DownloadUtils(object):
|
||||||
|
|
||||||
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))
|
||||||
|
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
|
if server_id is None and self.session_requests is not None: # Main server
|
||||||
session = self.session_requests
|
session = self.session_requests
|
||||||
|
|
|
@ -44,6 +44,9 @@ XML_PATH = (addon.getAddonInfo('path'), "default", "1080i")
|
||||||
|
|
||||||
def doPlayback(itemId, dbId):
|
def doPlayback(itemId, dbId):
|
||||||
|
|
||||||
|
if window('emby_online') != "true":
|
||||||
|
return
|
||||||
|
|
||||||
emby = embyserver.Read_EmbyServer()
|
emby = embyserver.Read_EmbyServer()
|
||||||
item = emby.getItem(itemId)
|
item = emby.getItem(itemId)
|
||||||
pbutils.PlaybackUtils(item).play(itemId, dbId)
|
pbutils.PlaybackUtils(item).play(itemId, dbId)
|
||||||
|
|
Loading…
Reference in a new issue