use audio timeline for audio files
This commit is contained in:
parent
251cc12d38
commit
bb1c15e2c0
1 changed files with 3 additions and 0 deletions
|
@ -1275,6 +1275,9 @@ class Item(models.Model):
|
||||||
icon = self.path('icon.jpg')
|
icon = self.path('icon.jpg')
|
||||||
self.icon.name = icon
|
self.icon.name = icon
|
||||||
timeline = '%stimelineantialias64p.jpg' % self.timeline_prefix
|
timeline = '%stimelineantialias64p.jpg' % self.timeline_prefix
|
||||||
|
audio_timeline = '%stimelineaudio64p.jpg' % self.timeline_prefix
|
||||||
|
if not os.path.exists(timeline) and os.path.exists(audio_timeline):
|
||||||
|
timeline = audio_timeline
|
||||||
cmd = [settings.ITEM_ICON,
|
cmd = [settings.ITEM_ICON,
|
||||||
'-i', self.icon.path
|
'-i', self.icon.path
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue