From 08d7c55621944f376c0e258273ef69af567a79ce Mon Sep 17 00:00:00 2001 From: Tim Brier Date: Wed, 19 Apr 2017 08:51:43 +0100 Subject: [PATCH] Obey the ordering of multi image strips given in the JSON --- scripts/order-symlinks.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/order-symlinks.py b/scripts/order-symlinks.py index 220ef2a99..0266fb60d 100755 --- a/scripts/order-symlinks.py +++ b/scripts/order-symlinks.py @@ -57,7 +57,11 @@ def create_symlinks(d): order = [] work = latest while work in data["pages"]: - order.extend(data["pages"][work]["images"].values()) + if "imagesOrder" in data["pages"][work].keys(): + for url in reversed(data["pages"][work]["imagesOrder"]): + order.append(data["pages"][work]["images"][url]) + else: + order.extend(data["pages"][work]["images"].values()) if "prev" in data["pages"][work]: work = data["pages"][work]["prev"] else: