Modify applying patch

First time still requires a restart. Subsequent patches do not.
This commit is contained in:
angelblue05 2018-09-08 18:05:12 -05:00
parent 17fdf0e923
commit 5a63bd43a3
2 changed files with 7 additions and 4 deletions

View file

@ -149,12 +149,11 @@ class Service(xbmc.Monitor):
return
get_objects(zipfile, label + '.zip')
if get_objects(zipfile, label + '.zip'): # no patch applied previously
dialog("ok", heading="{emby}", line1=_(33135))
xbmc.executebuiltin('RestartApp')
except Exception as error:
LOG.info(error)
dialog("ok", heading="{emby}", line1=_(33135))
xbmc.executebuiltin('RestartApp')
def onNotification(self, sender, method, data):