mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Merge pull request #257 from TrueTechy/server_change_warning
Disabled changing server details & Removed corresponding function
This commit is contained in:
commit
1a83263095
3 changed files with 5 additions and 13 deletions
|
@ -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':
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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" />
|
||||||
|
|
Loading…
Reference in a new issue