diff --git a/resources/lib/DownloadUtils.py b/resources/lib/DownloadUtils.py index 0cc5f497..390a9d2d 100644 --- a/resources/lib/DownloadUtils.py +++ b/resources/lib/DownloadUtils.py @@ -268,6 +268,7 @@ class DownloadUtils(): # Tell UserClient token has been revoked. WINDOW.setProperty("Server_status", "401") self.logMsg("HTTP Error: %s" % e, 0) + xbmcgui.Dialog().notification("Error connecting", "Unauthorized.", xbmcgui.NOTIFICATION_ERROR) elif (r.status_code == 301) or (r.status_code == 302): # Redirects diff --git a/resources/lib/PlaybackUtils.py b/resources/lib/PlaybackUtils.py index 796b8c3e..000b5c91 100644 --- a/resources/lib/PlaybackUtils.py +++ b/resources/lib/PlaybackUtils.py @@ -43,7 +43,10 @@ class PlaybackUtils(): userid = WINDOW.getProperty('userId%s' % username) server = WINDOW.getProperty('server%s' % username) - id = result["Id"] + try: + id = result["Id"] + except: + return userData = result['UserData'] resume_result = 0