mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Add check update option
To manually look for an update regarding objects (pulled from plugin.video.emby branch)
This commit is contained in:
parent
71eea37448
commit
e6556b28d1
3 changed files with 8 additions and 1 deletions
|
@ -107,6 +107,8 @@ class Events(object):
|
|||
xbmc.executebuiltin('Addon.OpenSettings(plugin.video.emby)')
|
||||
elif mode == 'adduser':
|
||||
add_user()
|
||||
elif mode == 'checkupdate':
|
||||
event('CheckUpdate')
|
||||
elif mode == 'updateserver':
|
||||
event('UpdateServer')
|
||||
elif mode == 'thememedia':
|
||||
|
|
|
@ -171,7 +171,7 @@ class Service(xbmc.Monitor):
|
|||
'LibraryChanged', 'ServerOnline', 'SyncLibrary', 'RepairLibrary', 'RemoveLibrary',
|
||||
'EmbyConnect', 'SyncLibrarySelection', 'RepairLibrarySelection', 'AddServer',
|
||||
'Unauthorized', 'UpdateServer', 'UserConfigurationUpdated', 'ServerRestarting',
|
||||
'RemoveServer', 'AddLibrarySelection'):
|
||||
'RemoveServer', 'AddLibrarySelection', 'CheckUpdate'):
|
||||
return
|
||||
|
||||
data = json.loads(data)[0]
|
||||
|
@ -326,6 +326,10 @@ class Service(xbmc.Monitor):
|
|||
if data.get('ServerId') is None:
|
||||
Views().get_views()
|
||||
|
||||
elif method == 'CheckUpdate':
|
||||
if not self.check_update():
|
||||
dialog("notification", heading="{emby}", message=_(21341), icon="{emby}", sound=False)
|
||||
|
||||
def onSettingsChanged(self):
|
||||
|
||||
''' React to setting changes that impact window values.
|
||||
|
|
|
@ -86,6 +86,7 @@
|
|||
<setting label="30529" id="startupDelay" type="number" default="0" option="int" />
|
||||
<setting label="30239" type="action" action="RunPlugin(plugin://plugin.video.emby?mode=reset)" option="close" />
|
||||
<setting label="30535" type="action" action="RunPlugin(plugin://plugin.video.emby?mode=deviceid)" />
|
||||
<setting label="24034" type="action" action="RunPlugin(plugin://plugin.video.emby?mode=checkupdate)" />
|
||||
|
||||
<setting type="sep"/>
|
||||
<setting label="33104" type="lsep"/>
|
||||
|
|
Loading…
Reference in a new issue