no default director, fixes #1080

This commit is contained in:
j 2012-10-09 12:46:51 +02:00
parent 47f83daccf
commit 4bbc6a6310

View file

@ -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,