From 055a2b6482bd7c113dde51671973c7cc4fb087dc Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 21 Oct 2011 20:10:24 +0200 Subject: [PATCH] more timeline names --- pandora/archive/extract.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pandora/archive/extract.py b/pandora/archive/extract.py index 2fd42a51..984461e2 100644 --- a/pandora/archive/extract.py +++ b/pandora/archive/extract.py @@ -334,7 +334,8 @@ def cuts(prefix): height = 64 width = 1500 pixels = [] - 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: timeline = Image.open(image) frames += timeline.size[0] pixels.append(timeline.load()) @@ -418,7 +419,7 @@ def timeline_strip(item, cuts, info, prefix): if len(line_image) > frame: timeline_image.paste(line_image[frame], (x, 0)) if x == timeline_width - 1: - timeline_file = '%sstrip.64.%04d.png' % (prefix, i) + timeline_file = '%sStrip64p%04d.png' % (prefix, i) if _debug: print 'writing', timeline_file timeline_image.save(timeline_file)