From cdd623973692cf95d034c613fdf1d79d8707c238 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Tue, 5 May 2015 22:20:29 -0500 Subject: [PATCH] Follow up for the new feature Added a short notification to indicate to users success or error. --- resources/lib/Entrypoint.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/resources/lib/Entrypoint.py b/resources/lib/Entrypoint.py index 5c79b8f6..09463001 100644 --- a/resources/lib/Entrypoint.py +++ b/resources/lib/Entrypoint.py @@ -89,6 +89,7 @@ def addUser(): url = "{server}/mediabrowser/Sessions/%s/Users/%s" % (sessionId, selected_userId) postdata = {} doUtils.downloadUrl(url, postBody=postdata, type="DELETE") + xbmcgui.Dialog().notification("Success!", "%s removed from viewing session" % selected, time=1000) return else: return @@ -113,9 +114,11 @@ def addUser(): url = "{server}/mediabrowser/Sessions/%s/Users/%s" % (sessionId, selected_userId) postdata = {} doUtils.downloadUrl(url, postBody=postdata, type="POST") + xbmcgui.Dialog().notification("Success!", "%s added to viewing session" % selected, time=1000) except: xbmc.log("Failed to add user to session.") + xbmcgui.Dialog().notification("Error", "Unable to add/remove user from the session.", xbmcgui.NOTIFICATION_ERROR) ##### BROWSE EMBY CHANNELS ##### def BrowseChannels(id, folderid=None):