From aa489bb7099336e41073ba61f39b2785bb61d67d Mon Sep 17 00:00:00 2001 From: Ruud Date: Tue, 5 Nov 2013 23:42:44 +0100 Subject: [PATCH] Force name as string --- couchpotato/core/plugins/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/core/plugins/base.py b/couchpotato/core/plugins/base.py index c90c48c6..b0c6f1fc 100644 --- a/couchpotato/core/plugins/base.py +++ b/couchpotato/core/plugins/base.py @@ -291,7 +291,7 @@ class Plugin(object): def createNzbName(self, data, movie): tag = self.cpTag(movie) - return '%s%s' % (toSafeString(data.get('name')[:127 - len(tag)]), tag) + return '%s%s' % (toSafeString(toUnicode(data.get('name'))[:127 - len(tag)]), tag) def createFileName(self, data, filedata, movie): name = os.path.join(self.createNzbName(data, movie))