stripAccents

This commit is contained in:
j 2010-09-01 14:57:29 +02:00
parent a8f150272e
commit d780e12a80

View file

@ -8,7 +8,7 @@ from django.db.models import Q, Max
from django.contrib.auth.models import User
import ox
from ox.normalize import canonicalName, normalizePath
from ox.normalize import canonicalName, normalizePath, stripAccents
from ox import stripTags
import ox.web.imdb
import ox.web.wikipedia
@ -121,7 +121,8 @@ class MovieId(models.Model):
title = self.title
if self.year:
title += ' (%s)' % self.year
return os.path.join(directors[0].upper(), normalizePath(directors), normalizePath(title))
folder = stripAccents(directors[0].upper())[0]
return os.path.join(folder, normalizePath(directors), normalizePath(title))
def json(self):
json = {}