Disabled changing server settings in settings menu & Removed corresponding update info function

This commit is contained in:
Abby Gourlay 2020-03-30 03:08:57 +01:00
parent 7ee28a0c71
commit ab6e51af58
3 changed files with 5 additions and 13 deletions

View file

@ -105,8 +105,6 @@ class Events(object):
xbmc.executebuiltin('Addon.OpenSettings(plugin.video.jellyfin)') xbmc.executebuiltin('Addon.OpenSettings(plugin.video.jellyfin)')
elif mode == 'adduser': elif mode == 'adduser':
add_user() add_user()
elif mode == 'updateserver':
event('UpdateServer')
elif mode == 'thememedia': elif mode == 'thememedia':
get_themes() get_themes()
elif mode == 'managelibs': elif mode == 'managelibs':

View file

@ -161,7 +161,7 @@ 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',
'SyncLibrarySelection', 'RepairLibrarySelection', 'AddServer', 'SyncLibrarySelection', 'RepairLibrarySelection', 'AddServer',
'Unauthorized', 'UpdateServer', 'UserConfigurationUpdated', 'ServerRestarting', 'Unauthorized', 'UserConfigurationUpdated', 'ServerRestarting',
'RemoveServer', 'AddLibrarySelection', 'RemoveLibrarySelection'): 'RemoveServer', 'AddLibrarySelection', 'RemoveLibrarySelection'):
return return
@ -249,11 +249,6 @@ class Service(xbmc.Monitor):
self.connect.remove_server(data['Id']) self.connect.remove_server(data['Id'])
xbmc.executebuiltin("Container.Refresh") 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: elif method == 'UserDataChanged' and self.library_thread:
if data.get('ServerId') or not window('jellyfin_startup.bool'): if data.get('ServerId') or not window('jellyfin_startup.bool'):
return return

View file

@ -2,11 +2,10 @@
<settings> <settings>
<category label="29999"><!-- Jellyfin --> <category label="29999"><!-- Jellyfin -->
<setting label="30003" id="idMethod" type="enum" values="Manual" default="0" /> <setting label="30003" id="idMethod" type="enum" values="Manual" default="0" enable="false" />
<setting label="30024" id="username" type="text" default="" visible="true" /> <setting label="30024" id="username" type="text" default="" visible="true" enable="false" />
<setting label="30001" id="serverName" type="text" default="" /> <setting label="30001" id="serverName" type="text" default="" enable="false" />
<setting label="30000" id="server" type="text" default="" visible="true" /> <setting label="30000" id="server" type="text" default="" visible="true" enable="false" />
<setting label="33150" type="action" action="RunPlugin(plugin://plugin.video.jellyfin?mode=updateserver)" visible="!eq(-1,)" option="close" />
<setting label="30500" id="sslverify" type="bool" default="true" visible="true" /> <setting label="30500" id="sslverify" type="bool" default="true" visible="true" />
<setting type="sep" /> <setting type="sep" />