From 57758f3f9941a9da5ce0059d49372e39f6bf7181 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Fri, 7 Sep 2018 17:52:14 -0500 Subject: [PATCH] Fix add/remove server --- resources/lib/entrypoint/default.py | 2 +- resources/lib/entrypoint/service.py | 3 ++- resources/lib/monitor.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/resources/lib/entrypoint/default.py b/resources/lib/entrypoint/default.py index e182fb18..000ad147 100644 --- a/resources/lib/entrypoint/default.py +++ b/resources/lib/entrypoint/default.py @@ -161,7 +161,7 @@ def listing(): context = [] if server.get('ManualAddress'): - context.append((_(33141), "RunPlugin(plugin://plugin.video.emby/?mode=removeserver&server=%s)")) + context.append((_(33141), "RunPlugin(plugin://plugin.video.emby/?mode=removeserver&server=%s)" % server['Id'])) if 'AccessToken' not in server: directory("%s (%s)" % (server['Name'], _(30539)), "plugin://plugin.video.emby/?mode=login&server=%s" % server['Id'], False, context=context) diff --git a/resources/lib/entrypoint/service.py b/resources/lib/entrypoint/service.py index 9f0b1efe..122c0739 100644 --- a/resources/lib/entrypoint/service.py +++ b/resources/lib/entrypoint/service.py @@ -170,7 +170,8 @@ class Service(xbmc.Monitor): if method not in ('ServerUnreachable', 'ServerShuttingDown', 'UserDataChanged', 'ServerConnect', 'LibraryChanged', 'ServerOnline', 'SyncLibrary', 'RepairLibrary', 'RemoveLibrary', 'EmbyConnect', 'SyncLibrarySelection', 'RepairLibrarySelection', 'AddServer', - 'Unauthorized', 'UpdateServer', 'UserConfigurationUpdated', 'ServerRestarting'): + 'Unauthorized', 'UpdateServer', 'UserConfigurationUpdated', 'ServerRestarting', + 'RemoveServer'): return data = json.loads(data)[0] diff --git a/resources/lib/monitor.py b/resources/lib/monitor.py index e1aabf2b..107deddf 100644 --- a/resources/lib/monitor.py +++ b/resources/lib/monitor.py @@ -51,7 +51,7 @@ class Monitor(xbmc.Monitor): if sender == 'plugin.video.emby': method = method.split('.')[1] - if method not in ('GetItem', 'ReportProgressRequested', 'ServerOnline', 'LoadServer', + if method not in ('GetItem', 'ReportProgressRequested', 'LoadServer', 'GetServerAddress', 'GetPlaybackInfo', 'Browse', 'GetImages', 'GetToken', 'PlayPlaylist', 'Play', 'GetIntros', 'GetAdditionalParts', 'RefreshItem', 'FavoriteItem', 'DeleteItem', 'AddUser', 'GetSession', 'GetUsers', 'GetThemes',