From 624a69a89fdd301fff7c9d7e0d02d336f6eaad7b Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 21 Oct 2011 20:12:09 +0200 Subject: [PATCH] more timeline names --- pandora/archive/extract.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandora/archive/extract.py b/pandora/archive/extract.py index 984461e2..1cf41cd6 100644 --- a/pandora/archive/extract.py +++ b/pandora/archive/extract.py @@ -288,7 +288,8 @@ def average_color(prefix, start=0, end=0): if end: start = int(start * 25) end = int(end * 25) - for image in sorted(glob("%s.%d.*.png" % (prefix, height))): + timelines = sorted(filter(lambda t: t!= '%s%sp.png'%(prefix,height), glob("%s%sp*.png"%(prefix, height)))) + for image in timelines: start_offset = 0 timeline = Image.open(image) frames += timeline.size[0]