mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-12 21:26:10 +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:
|
except Exception as error:
|
||||||
LOG.exception(error)
|
LOG.exception(error)
|
||||||
|
|
||||||
raise Exception("RestartService")
|
return True
|
||||||
|
|
||||||
def onNotification(self, sender, method, data):
|
def onNotification(self, sender, method, data):
|
||||||
|
|
||||||
|
@ -421,14 +421,11 @@ class Service(xbmc.Monitor):
|
||||||
|
|
||||||
elif method == 'CheckUpdate':
|
elif method == 'CheckUpdate':
|
||||||
|
|
||||||
try:
|
if not self.check_update(True):
|
||||||
self.check_update(True)
|
|
||||||
dialog("notification", heading="{emby}", message=_(21341), icon="{emby}", sound=False)
|
dialog("notification", heading="{emby}", message=_(21341), icon="{emby}", sound=False)
|
||||||
except Exception as error:
|
else:
|
||||||
if 'RestartService' in error:
|
dialog("notification", heading="{emby}", message=_(33181), icon="{emby}", sound=False)
|
||||||
|
window('emby.restart.bool', True)
|
||||||
dialog("notification", heading="{emby}", message=_(33181), icon="{emby}", sound=False)
|
|
||||||
window('emby.restart.bool', True)
|
|
||||||
|
|
||||||
def onSettingsChanged(self):
|
def onSettingsChanged(self):
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue