From aafc5243db057303a740f712ac5bc1d62a1eab6e Mon Sep 17 00:00:00 2001 From: primaeval Date: Mon, 9 Jan 2017 16:47:39 +0100 Subject: [PATCH] unicode fix --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index dca1aff..a56a9bd 100644 --- a/main.py +++ b/main.py @@ -182,7 +182,7 @@ def browse(table): if not title or (title == ".."): continue context_items = [] - context_items.append(("[COLOR yellow][B]%s[/B][/COLOR] " % 'Download', 'XBMC.RunPlugin(%s)' % (plugin.url_for(download, name=title, url=file)))) + context_items.append(("[COLOR yellow][B]%s[/B][/COLOR] " % 'Download', 'XBMC.RunPlugin(%s)' % (plugin.url_for(download, name=title.encode("utf8"), url=file)))) title = re.sub('\[.*?\]','',title) if plugin.get_setting('url') == 'true': label = "%s [COLOR dimgray][%s][/COLOR]" % (title,file)