From 61e972aa9f3beb93b4dd4497280d0089374c0028 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 5 Apr 2011 12:50:14 +0200 Subject: [PATCH] folder names are unicode --- pandora/archive/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora/archive/models.py b/pandora/archive/models.py index a17c5ab6..f8981679 100644 --- a/pandora/archive/models.py +++ b/pandora/archive/models.py @@ -296,7 +296,7 @@ class File(models.Model): if settings.USE_IMDB: director = self.item.get('director', ['Unknown Director']) director = map(get_name_sort, director) - director = '; '.join(director) + director = u'; '.join(director) director = re.sub(r'[:\\/]', '_', director) name = os.path.join(director, name) year = self.item.get('year', None) @@ -304,7 +304,7 @@ class File(models.Model): name += u' (%s)' % year name = os.path.join(name[0].upper(), name) return name - return '' + return u'' def get_name(self): if self.item: