From e3be458a28985a575e4d4abee7ed029e9c64b5ac Mon Sep 17 00:00:00 2001 From: Rob Weber Date: Mon, 20 Jan 2014 12:48:23 -0600 Subject: [PATCH] use xbmcgui.notification() part of #36 --- resources/lib/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/lib/utils.py b/resources/lib/utils.py index bc1814a..3f317a9 100644 --- a/resources/lib/utils.py +++ b/resources/lib/utils.py @@ -1,4 +1,5 @@ import xbmc +import xbmcgui import xbmcaddon __addon_id__= 'script.xbmcbackup' @@ -17,7 +18,7 @@ def log(message,loglevel=xbmc.LOGNOTICE): xbmc.log(encode(__addon_id__ + ": " + message),level=loglevel) def showNotification(message): - xbmc.executebuiltin("Notification(" + encode(getString(30010)) + "," + encode(message) + ",4000," + xbmc.translatePath(__Addon.getAddonInfo('path') + "/icon.png") + ")") + xbmcgui.Dialog().notification(encode(getString(30010)),encode(message),time=4000,icon=xbmc.translatePath(__Addon.getAddonInfo('path') + "/icon.png")) def getSetting(name): return __Addon.getSetting(name)