From 2b14f23a1ddca282035af8b21967ca2ad79c57fa Mon Sep 17 00:00:00 2001 From: Rob Weber Date: Tue, 1 Oct 2013 13:22:03 -0500 Subject: [PATCH] should encode() all strings before displaying notification fixes #33 --- addon.xml | 2 +- changelog.txt | 4 ++++ resources/lib/utils.py | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/addon.xml b/addon.xml index 954b267..b4e80d4 100644 --- a/addon.xml +++ b/addon.xml @@ -1,6 +1,6 @@  + name="XBMC Backup" version="0.4.1" provider-name="robweber"> diff --git a/changelog.txt b/changelog.txt index cefcf8d..a2c1382 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,7 @@ +Version 0.4.1 + +added encode() around notifications + Version 0.4.0 fixed settings display error - thanks zer04c diff --git a/resources/lib/utils.py b/resources/lib/utils.py index cf81268..02ee1d9 100644 --- a/resources/lib/utils.py +++ b/resources/lib/utils.py @@ -14,7 +14,7 @@ def log(message,loglevel=xbmc.LOGNOTICE): xbmc.log(encode(__addon_id__ + ": " + message),level=loglevel) def showNotification(message): - xbmc.executebuiltin("Notification(" + getString(30010) + "," + message + ",4000," + xbmc.translatePath(__Addon.getAddonInfo('path') + "/icon.png") + ")") + xbmc.executebuiltin("Notification(" + encode(getString(30010)) + "," + encode(message) + ",4000," + xbmc.translatePath(__Addon.getAddonInfo('path') + "/icon.png") + ")") def getSetting(name): return __Addon.getSetting(name)