Add notification for silent patch

This commit is contained in:
angelblue05 2018-09-08 18:11:19 -05:00
parent 5a63bd43a3
commit c9d5f13332
2 changed files with 8 additions and 1 deletions

View file

@ -753,3 +753,7 @@ msgstr ""
msgctxt "#33155"
msgid "The currently applied patch for Emby for Kodi is corrupted! Please post to the Emby for Kodi forums if this issue persists. This will need to be fixed as soon as possible."
msgstr ""
msgctxt "#33156"
msgid "A patch has been applied!"
msgstr ""

View file

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