forked from 0x2620/pandora
use new timeline names for poster/icon
This commit is contained in:
parent
66280a44c1
commit
24caf0e0c5
1 changed files with 3 additions and 3 deletions
|
@ -1087,7 +1087,7 @@ class Item(models.Model):
|
||||||
join_tiles(timelines, self.timeline_prefix)
|
join_tiles(timelines, self.timeline_prefix)
|
||||||
else:
|
else:
|
||||||
#remove joined timeline if it was created at some point
|
#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)
|
os.unlink(f)
|
||||||
|
|
||||||
def make_poster(self, force=False):
|
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))
|
poster = os.path.abspath(os.path.join(settings.MEDIA_ROOT, poster))
|
||||||
|
|
||||||
frame = self.get_poster_frame_path()
|
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']))
|
director = u', '.join(self.get('director', ['Unknown Director']))
|
||||||
cmd = [settings.ITEM_POSTER,
|
cmd = [settings.ITEM_POSTER,
|
||||||
|
@ -1178,7 +1178,7 @@ class Item(models.Model):
|
||||||
frame = self.get_poster_frame_path()
|
frame = self.get_poster_frame_path()
|
||||||
icon = self.path('icon.jpg')
|
icon = self.path('icon.jpg')
|
||||||
self.icon.name = icon
|
self.icon.name = icon
|
||||||
timeline = '%s64p.png' % self.timeline_prefix
|
timeline = '%stimelineantialias64p.jpg' % self.timeline_prefix
|
||||||
cmd = [settings.ITEM_ICON,
|
cmd = [settings.ITEM_ICON,
|
||||||
'-i', self.icon.path
|
'-i', self.icon.path
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue