From bb1c15e2c00cdb42e62d0efd5e82a95042d2516d Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 7 May 2013 16:40:37 +0000 Subject: [PATCH] use audio timeline for audio files --- pandora/item/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pandora/item/models.py b/pandora/item/models.py index 0c415a5a..b4b90fd1 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -1275,6 +1275,9 @@ class Item(models.Model): icon = self.path('icon.jpg') self.icon.name = icon 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, '-i', self.icon.path ]