Obey the ordering of multi image strips given in the JSON
This commit is contained in:
parent
95e48b8d8d
commit
08d7c55621
1 changed files with 5 additions and 1 deletions
|
@ -57,6 +57,10 @@ def create_symlinks(d):
|
|||
order = []
|
||||
work = latest
|
||||
while work in data["pages"]:
|
||||
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"]
|
||||
|
|
Loading…
Reference in a new issue