From 8d5f8d51564c46bfdf9a6eb1e399e64cad1c0876 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 28 Feb 2013 20:47:02 +0000 Subject: [PATCH] get poster frame --- pandora/item/models.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/pandora/item/models.py b/pandora/item/models.py index a7daefa53..12cec41f6 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -1228,12 +1228,9 @@ class Item(models.Model): path = frames[int(self.poster_frame)]['path'] elif frames: path = frames[int(len(frames)/2)]['path'] - else: - size = settings.CONFIG['video']['resolutions'][0] - path = self.frame(self.poster_frame, size) - else: - size = settings.CONFIG['video']['resolutions'][0] - path = self.frame(self.poster_frame, size) + else: + size = settings.CONFIG['video']['resolutions'][0] + path = self.frame(self.poster_frame, size) return path def make_icon(self):