folder names are unicode
This commit is contained in:
parent
9a3418d1ea
commit
f5b13b295d
1 changed files with 2 additions and 2 deletions
|
@ -296,7 +296,7 @@ class File(models.Model):
|
||||||
if settings.USE_IMDB:
|
if settings.USE_IMDB:
|
||||||
director = self.item.get('director', ['Unknown Director'])
|
director = self.item.get('director', ['Unknown Director'])
|
||||||
director = map(get_name_sort, director)
|
director = map(get_name_sort, director)
|
||||||
director = '; '.join(director)
|
director = u'; '.join(director)
|
||||||
director = re.sub(r'[:\\/]', '_', director)
|
director = re.sub(r'[:\\/]', '_', director)
|
||||||
name = os.path.join(director, name)
|
name = os.path.join(director, name)
|
||||||
year = self.item.get('year', None)
|
year = self.item.get('year', None)
|
||||||
|
@ -304,7 +304,7 @@ class File(models.Model):
|
||||||
name += u' (%s)' % year
|
name += u' (%s)' % year
|
||||||
name = os.path.join(name[0].upper(), name)
|
name = os.path.join(name[0].upper(), name)
|
||||||
return name
|
return name
|
||||||
return ''
|
return u''
|
||||||
|
|
||||||
def get_name(self):
|
def get_name(self):
|
||||||
if self.item:
|
if self.item:
|
||||||
|
|
Loading…
Reference in a new issue