Fix check update

This commit is contained in:
angelblue05 2019-01-13 22:18:34 -06:00
parent ae0163d479
commit 3007e1d7cd

View file

@ -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):