no default director, fixes #1080
This commit is contained in:
parent
47f83daccf
commit
4bbc6a6310
1 changed files with 5 additions and 2 deletions
|
@ -1123,13 +1123,16 @@ class Item(models.Model):
|
||||||
frame = self.get_poster_frame_path()
|
frame = self.get_poster_frame_path()
|
||||||
timeline = '%stimelineantialias64p.jpg' % self.timeline_prefix
|
timeline = '%stimelineantialias64p.jpg' % self.timeline_prefix
|
||||||
|
|
||||||
director = u', '.join(self.get('director', ['Unknown Director']))
|
director = u', '.join(self.get('director', []))
|
||||||
cmd = [settings.ITEM_POSTER,
|
cmd = [settings.ITEM_POSTER,
|
||||||
'-t', self.get('title', '').encode('utf-8'),
|
'-t', self.get('title', '').encode('utf-8'),
|
||||||
'-d', director.encode('utf-8'),
|
|
||||||
'-y', str(self.get('year', '')),
|
'-y', str(self.get('year', '')),
|
||||||
'-p', poster
|
'-p', poster
|
||||||
]
|
]
|
||||||
|
if director:
|
||||||
|
cmd += [
|
||||||
|
'-d', director.encode('utf-8'),
|
||||||
|
]
|
||||||
if frame:
|
if frame:
|
||||||
cmd += [
|
cmd += [
|
||||||
'-f', frame,
|
'-f', frame,
|
||||||
|
|
Loading…
Reference in a new issue