Skip to content

Commit

Permalink
unicode fix
Browse files Browse the repository at this point in the history
  • Loading branch information
primaeval committed Jan 9, 2017
1 parent dc86cf9 commit aafc524
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit aafc524

Please sign in to comment.