From ab6e51af58f7de5eb310c0116259454a466ebf81 Mon Sep 17 00:00:00 2001 From: Abby Gourlay Date: Mon, 30 Mar 2020 03:08:57 +0100 Subject: [PATCH] Disabled changing server settings in settings menu & Removed corresponding update info function --- jellyfin_kodi/entrypoint/default.py | 2 -- jellyfin_kodi/entrypoint/service.py | 7 +------ resources/settings.xml | 9 ++++----- 3 files changed, 5 insertions(+), 13 deletions(-) diff --git a/jellyfin_kodi/entrypoint/default.py b/jellyfin_kodi/entrypoint/default.py index 49a90f04..a5e5920c 100644 --- a/jellyfin_kodi/entrypoint/default.py +++ b/jellyfin_kodi/entrypoint/default.py @@ -105,8 +105,6 @@ class Events(object): xbmc.executebuiltin('Addon.OpenSettings(plugin.video.jellyfin)') elif mode == 'adduser': add_user() - elif mode == 'updateserver': - event('UpdateServer') elif mode == 'thememedia': get_themes() elif mode == 'managelibs': diff --git a/jellyfin_kodi/entrypoint/service.py b/jellyfin_kodi/entrypoint/service.py index 27ee4372..0a377a11 100644 --- a/jellyfin_kodi/entrypoint/service.py +++ b/jellyfin_kodi/entrypoint/service.py @@ -161,7 +161,7 @@ class Service(xbmc.Monitor): if method not in ('ServerUnreachable', 'ServerShuttingDown', 'UserDataChanged', 'ServerConnect', 'LibraryChanged', 'ServerOnline', 'SyncLibrary', 'RepairLibrary', 'RemoveLibrary', 'SyncLibrarySelection', 'RepairLibrarySelection', 'AddServer', - 'Unauthorized', 'UpdateServer', 'UserConfigurationUpdated', 'ServerRestarting', + 'Unauthorized', 'UserConfigurationUpdated', 'ServerRestarting', 'RemoveServer', 'AddLibrarySelection', 'RemoveLibrarySelection'): return @@ -249,11 +249,6 @@ class Service(xbmc.Monitor): self.connect.remove_server(data['Id']) xbmc.executebuiltin("Container.Refresh") - elif method == 'UpdateServer': - - dialog("ok", heading="{jellyfin}", line1=translate(33151)) - self.connect.setup_manual_server() - elif method == 'UserDataChanged' and self.library_thread: if data.get('ServerId') or not window('jellyfin_startup.bool'): return diff --git a/resources/settings.xml b/resources/settings.xml index 65a9f3f1..e141b9ac 100644 --- a/resources/settings.xml +++ b/resources/settings.xml @@ -2,11 +2,10 @@ - - - - - + + + +