diff --git a/pandora/item/models.py b/pandora/item/models.py index 9df43c046..ebfe80431 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -920,8 +920,7 @@ class Item(models.Model): poster = os.path.abspath(os.path.join(settings.MEDIA_ROOT, poster)) frame = self.get_poster_frame_path() - timeline = self.path('timeline.64.png') - timeline = os.path.abspath(os.path.join(settings.MEDIA_ROOT, timeline)) + timeline = '%.64.png' % self.timeline_prefix director = u', '.join(self.get('director', ['Unknown Director'])) cmd = [settings.ITEM_POSTER, @@ -989,8 +988,7 @@ class Item(models.Model): frame = self.get_poster_frame_path() icon = self.path('icon.jpg') self.icon.name = icon - timeline = self.path('timeline.64.png') - timeline = os.path.abspath(os.path.join(settings.MEDIA_ROOT, timeline)) + timeline = '%.64.png' % self.timeline_prefix cmd = [settings.ITEM_ICON, '-i', self.icon.path ]