Merge pull request #257 from TrueTechy/server_change_warning

Disabled changing server details & Removed corresponding function
This commit is contained in:
mcarlton00 2020-03-30 22:31:59 -04:00 committed by GitHub
commit 1a83263095
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)')
elif mode == 'adduser':
add_user()
elif mode == 'updateserver':
event('UpdateServer')
elif mode == 'thememedia':
get_themes()
elif mode == 'managelibs':

View File

@ -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

View File

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