fix suggested path for unknown director, fixes #1094

This commit is contained in:
j 2012-10-18 01:29:59 +02:00
parent 647bcc20cc
commit f82aefc6f0

View file

@ -137,8 +137,11 @@ class MovieId(models.Model):
info['seriesTitle'] = self.series_title
info['type'] = 'video'
info['extension'] = 'avi'
info['director'] = self.director.split(', ')
info['directorSort'] = oxdb_sortnames(info['director'])
if not self.director:
info['director'] = info['directorSort'] = ['Unknown Director']
else:
info['director'] = self.director.split(', ')
info['directorSort'] = oxdb_sortnames(info['director'])
return ox.movie.format_path(info)
def links(self):