From eef82edda812b2d6d1a658b28194944465130143 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 28 Oct 2011 11:58:40 +0200 Subject: [PATCH] fix color merge --- pandora/item/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/item/models.py b/pandora/item/models.py index 0a168726..dc8ace5d 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -892,7 +892,7 @@ class Item(models.Model): for s in streams: for c in s.cuts: self.data['cuts'].append(c+offset) - color = map(lambda a,b: (a+b)/n, color,ox.image.getRGB(s.color)) + color = map(lambda a,b: (a+b)/n, color,ox.image.getRGB(s.color)) offset += s.duration self.data['color'] = ox.image.getHSL(color) #extract.timeline_strip(self, self.data['cuts'], stream.info, self.timeline_prefix[:-8])