From 45ac160159cecb7589a7db74003f70d88e7b317f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Socho=C5=84?= Date: Sat, 10 Sep 2022 20:23:58 +0200 Subject: [PATCH] Fix TypeError: can't concat str to bytes --- script.xbmc.boblight/default.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/script.xbmc.boblight/default.py b/script.xbmc.boblight/default.py index f0dac1b..1565996 100644 --- a/script.xbmc.boblight/default.py +++ b/script.xbmc.boblight/default.py @@ -123,17 +123,17 @@ def startup(self): if loaded == 1: #libboblight not found if platform == 'linux': - xbmcgui.Dialog().ok(__scriptname__, localize(32504) + " " + localize(32505) + " " + localize(32506)) + xbmcgui.Dialog().ok(__scriptname__, localize(32504) + " ".encode('utf-8') + localize(32505) + " ".encode('utf-8') + localize(32506)) else: # ask user if we should fetch the lib for osx, ios, android and windows - if xbmcgui.Dialog().yesno(__scriptname__, localize(32504) + " " + localize(32509)): + if xbmcgui.Dialog().yesno(__scriptname__, localize(32504) + " ".encode('utf-8') + localize(32509)): tools_downloadLibBoblight(platform,settings.other_misc_notifications) loaded = bob.bob_loadLibBoblight(libpath,platform) elif loaded == 2: #no ctypes available - xbmcgui.Dialog().ok(__scriptname__, localize(32507) + " " + localize(32508)) + xbmcgui.Dialog().ok(__scriptname__, localize(32507) + " ".encode('utf-8') + localize(32508)) return loaded