mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-24 01:36:11 +00:00
Fix check update
This commit is contained in:
parent
ae0163d479
commit
3007e1d7cd
1 changed files with 5 additions and 8 deletions
|
@ -214,7 +214,7 @@ class Service(xbmc.Monitor):
|
|||
except Exception as error:
|
||||
LOG.exception(error)
|
||||
|
||||
raise Exception("RestartService")
|
||||
return True
|
||||
|
||||
def onNotification(self, sender, method, data):
|
||||
|
||||
|
@ -421,14 +421,11 @@ class Service(xbmc.Monitor):
|
|||
|
||||
elif method == 'CheckUpdate':
|
||||
|
||||
try:
|
||||
self.check_update(True)
|
||||
if not self.check_update(True):
|
||||
dialog("notification", heading="{emby}", message=_(21341), icon="{emby}", sound=False)
|
||||
except Exception as error:
|
||||
if 'RestartService' in error:
|
||||
|
||||
dialog("notification", heading="{emby}", message=_(33181), icon="{emby}", sound=False)
|
||||
window('emby.restart.bool', True)
|
||||
else:
|
||||
dialog("notification", heading="{emby}", message=_(33181), icon="{emby}", sound=False)
|
||||
window('emby.restart.bool', True)
|
||||
|
||||
def onSettingsChanged(self):
|
||||
|
||||
|
|
Loading…
Reference in a new issue