From 18c493909dbffe386fdcc7d4351c5f0f157f91da Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Mon, 28 Dec 2015 17:58:01 -0600 Subject: [PATCH] Fix encoding for nodes --- resources/lib/videonodes.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/resources/lib/videonodes.py b/resources/lib/videonodes.py index 1dc9d5a6..8a20c886 100644 --- a/resources/lib/videonodes.py +++ b/resources/lib/videonodes.py @@ -60,8 +60,7 @@ class VideoNodes(object): # Treat homevideos as movies mediatype = "movies" - tagname = tagname.encode('utf-8') - cleantagname = utils.normalize_nodes(tagname) + cleantagname = utils.normalize_nodes(tagname.encode('utf-8')) if viewtype == "mixed": dirname = "%s - %s" % (cleantagname, mediatype) else: @@ -102,7 +101,7 @@ class VideoNodes(object): utils.window('Emby.nodes.%s.index' % indexnumber, value=path) # Root - root = self.commonRoot(order=0, label=dirname, tagname=tagname, roottype=0) + root = self.commonRoot(order=0, label=tagname, tagname=tagname, roottype=0) try: utils.indent(root) except: pass