From 55d841b0b33aef5c163bc5266a673a8ea5ebb4d8 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Fri, 22 Jan 2016 16:51:48 -0600 Subject: [PATCH] Temp removal of encoding in window prop Causing errors in report back, etc. Will have a look after the new version is released. --- resources/lib/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/lib/utils.py b/resources/lib/utils.py index 11a059b3..7d9bc236 100644 --- a/resources/lib/utils.py +++ b/resources/lib/utils.py @@ -44,17 +44,17 @@ def window(property, value=None, clear=False, windowid=10000): WINDOW = xbmcgui.Window(windowid) #setproperty accepts both string and unicode but utf-8 strings are adviced by kodi devs because some unicode can give issues - if isinstance(property, unicode): + '''if isinstance(property, unicode): property = property.encode("utf-8") if isinstance(value, unicode): - value = value.encode("utf-8") + value = value.encode("utf-8")''' if clear: WINDOW.clearProperty(property) elif value is not None: WINDOW.setProperty(property, value) else: #getproperty returns string so convert to unicode - return WINDOW.getProperty(property).decode("utf-8") + return WINDOW.getProperty(property)#.decode("utf-8") def settings(setting, value=None): # Get or add addon setting