From 24caf0e0c5fcfb2a04410fc33c3ca26a877afac3 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 30 May 2012 14:48:08 +0200 Subject: [PATCH] use new timeline names for poster/icon --- pandora/item/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pandora/item/models.py b/pandora/item/models.py index 9c775b66f..f4f9c25cd 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -1087,7 +1087,7 @@ class Item(models.Model): join_tiles(timelines, self.timeline_prefix) else: #remove joined timeline if it was created at some point - for f in glob(os.path.join(settings.MEDIA_ROOT, self.path(), 'timeline*.png')): + for f in glob(os.path.join(settings.MEDIA_ROOT, self.path(), 'timeline*.jpg')): os.unlink(f) def make_poster(self, force=False): @@ -1110,7 +1110,7 @@ class Item(models.Model): poster = os.path.abspath(os.path.join(settings.MEDIA_ROOT, poster)) frame = self.get_poster_frame_path() - timeline = '%s64p.png' % self.timeline_prefix + timeline = '%stimelineantialias64p.jpg' % self.timeline_prefix director = u', '.join(self.get('director', ['Unknown Director'])) cmd = [settings.ITEM_POSTER, @@ -1178,7 +1178,7 @@ class Item(models.Model): frame = self.get_poster_frame_path() icon = self.path('icon.jpg') self.icon.name = icon - timeline = '%s64p.png' % self.timeline_prefix + timeline = '%stimelineantialias64p.jpg' % self.timeline_prefix cmd = [settings.ITEM_ICON, '-i', self.icon.path ]