mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Disabled changing server settings in settings menu & Removed corresponding update info function
This commit is contained in:
parent
7ee28a0c71
commit
ab6e51af58
3 changed files with 5 additions and 13 deletions
|
@ -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':
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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" />
|
||||
|
|
Loading…
Reference in a new issue