mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 18:26:15 +00:00
Fix add/remove server
This commit is contained in:
parent
df306e69d7
commit
57758f3f99
3 changed files with 4 additions and 3 deletions
|
@ -161,7 +161,7 @@ def listing():
|
||||||
context = []
|
context = []
|
||||||
|
|
||||||
if server.get('ManualAddress'):
|
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:
|
if 'AccessToken' not in server:
|
||||||
directory("%s (%s)" % (server['Name'], _(30539)), "plugin://plugin.video.emby/?mode=login&server=%s" % server['Id'], False, context=context)
|
directory("%s (%s)" % (server['Name'], _(30539)), "plugin://plugin.video.emby/?mode=login&server=%s" % server['Id'], False, context=context)
|
||||||
|
|
|
@ -170,7 +170,8 @@ class Service(xbmc.Monitor):
|
||||||
if method not in ('ServerUnreachable', 'ServerShuttingDown', 'UserDataChanged', 'ServerConnect',
|
if method not in ('ServerUnreachable', 'ServerShuttingDown', 'UserDataChanged', 'ServerConnect',
|
||||||
'LibraryChanged', 'ServerOnline', 'SyncLibrary', 'RepairLibrary', 'RemoveLibrary',
|
'LibraryChanged', 'ServerOnline', 'SyncLibrary', 'RepairLibrary', 'RemoveLibrary',
|
||||||
'EmbyConnect', 'SyncLibrarySelection', 'RepairLibrarySelection', 'AddServer',
|
'EmbyConnect', 'SyncLibrarySelection', 'RepairLibrarySelection', 'AddServer',
|
||||||
'Unauthorized', 'UpdateServer', 'UserConfigurationUpdated', 'ServerRestarting'):
|
'Unauthorized', 'UpdateServer', 'UserConfigurationUpdated', 'ServerRestarting',
|
||||||
|
'RemoveServer'):
|
||||||
return
|
return
|
||||||
|
|
||||||
data = json.loads(data)[0]
|
data = json.loads(data)[0]
|
||||||
|
|
|
@ -51,7 +51,7 @@ class Monitor(xbmc.Monitor):
|
||||||
if sender == 'plugin.video.emby':
|
if sender == 'plugin.video.emby':
|
||||||
method = method.split('.')[1]
|
method = method.split('.')[1]
|
||||||
|
|
||||||
if method not in ('GetItem', 'ReportProgressRequested', 'ServerOnline', 'LoadServer',
|
if method not in ('GetItem', 'ReportProgressRequested', 'LoadServer',
|
||||||
'GetServerAddress', 'GetPlaybackInfo', 'Browse', 'GetImages', 'GetToken',
|
'GetServerAddress', 'GetPlaybackInfo', 'Browse', 'GetImages', 'GetToken',
|
||||||
'PlayPlaylist', 'Play', 'GetIntros', 'GetAdditionalParts', 'RefreshItem',
|
'PlayPlaylist', 'Play', 'GetIntros', 'GetAdditionalParts', 'RefreshItem',
|
||||||
'FavoriteItem', 'DeleteItem', 'AddUser', 'GetSession', 'GetUsers', 'GetThemes',
|
'FavoriteItem', 'DeleteItem', 'AddUser', 'GetSession', 'GetUsers', 'GetThemes',
|
||||||
|
|
Loading…
Reference in a new issue