From eb7bb3571f54f237ee71960eae08c4040b58b37a Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 23 Mar 2013 14:52:54 +0000 Subject: [PATCH] fix color extraction, fixes #1446 --- pandora/archive/extract.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/archive/extract.py b/pandora/archive/extract.py index e1ddb524..336bf75d 100644 --- a/pandora/archive/extract.py +++ b/pandora/archive/extract.py @@ -347,7 +347,7 @@ def average_color(prefix, start=0, end=0, mode='antialias'): start = int(start * 25) end = int(end * 25) mode = 'timeline' + mode - timelines = sorted(filter(lambda t: t!= '%s%s%sp.jpg'%(prefix, mode, height), + timelines = ox.sorted_strings(filter(lambda t: t!= '%s%s%sp.jpg'%(prefix, mode, height), glob("%s%s%sp*.jpg"%(prefix, mode, height)))) for image in timelines: start_offset = 0