fix suggested path for unknown director, fixes #1094
This commit is contained in:
parent
647bcc20cc
commit
f82aefc6f0
1 changed files with 5 additions and 2 deletions
|
@ -137,6 +137,9 @@ class MovieId(models.Model):
|
|||
info['seriesTitle'] = self.series_title
|
||||
info['type'] = 'video'
|
||||
info['extension'] = 'avi'
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue