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,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):
|
||||
|
|
Loading…
Reference in a new issue