Skip to content

Commit

Permalink
Merge pull request #1 from nvtkaszpir/fix-py3
Browse files Browse the repository at this point in the history
Fix TypeError: can't concat str to bytes
  • Loading branch information
wrtlprnft authored Oct 5, 2022
2 parents 6657b6d + 45ac160 commit 27bb250
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions script.xbmc.boblight/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 27bb250

Please sign in to comment.