Add Dresden Prague Tehran and Belfast highlights

This commit is contained in:
2026-09-20 00:53:38 +03:30
parent 2b90dccd83
commit 4364593529
46 changed files with 142 additions and 59 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
--- ---
layout: post layout: post
title: Babataher.jpg title: Babataher.jpg
date: 2024-10-09 date: "2024-10-25T23:59:39+00:00"
categories: art categories: art
--- ---
+1 -1
View File
@@ -1,7 +1,7 @@
--- ---
layout: post layout: post
title: Belfast_000512350018.jpg title: Belfast_000512350018.jpg
date: 2024-10-09 date: "2024-10-09T23:20:48+00:00"
categories: art categories: art
--- ---
+1 -1
View File
@@ -1,7 +1,7 @@
--- ---
layout: post layout: post
title: Belfast_000512350022.jpg title: Belfast_000512350022.jpg
date: 2024-10-09 date: "2024-10-09T23:20:49+00:00"
categories: art categories: art
--- ---
+1 -1
View File
@@ -1,7 +1,7 @@
--- ---
layout: post layout: post
title: Belfast_000512350026.jpg title: Belfast_000512350026.jpg
date: 2024-10-09 date: "2024-10-09T23:20:50+00:00"
categories: art categories: art
--- ---
+1 -1
View File
@@ -1,7 +1,7 @@
--- ---
layout: post layout: post
title: Belfast_000512350027.jpg title: Belfast_000512350027.jpg
date: 2024-10-09 date: "2024-10-09T23:20:51+00:00"
categories: art categories: art
--- ---
+1 -1
View File
@@ -1,7 +1,7 @@
--- ---
layout: post layout: post
title: Belfast_000512350032.jpg title: Belfast_000512350032.jpg
date: 2024-10-09 date: "2024-10-09T23:20:52+00:00"
categories: art categories: art
--- ---
+1 -1
View File
@@ -1,7 +1,7 @@
--- ---
layout: post layout: post
title: Bobby-Sands.jpg title: Bobby-Sands.jpg
date: 2024-10-09 date: "2024-10-09T23:20:53+00:00"
categories: art categories: art
--- ---
+1 -1
View File
@@ -1,7 +1,7 @@
--- ---
layout: post layout: post
title: Dresden_000512370016.jpg title: Dresden_000512370016.jpg
date: 2024-10-09 date: "2024-10-09T23:50:44+00:00"
categories: art categories: art
--- ---
+1 -1
View File
@@ -1,7 +1,7 @@
--- ---
layout: post layout: post
title: Dresden_000512370017.jpg title: Dresden_000512370017.jpg
date: 2024-10-09 date: "2024-10-09T23:50:45+00:00"
categories: art categories: art
--- ---
+1 -1
View File
@@ -1,7 +1,7 @@
--- ---
layout: post layout: post
title: Dresden_000512370018.jpg title: Dresden_000512370018.jpg
date: 2024-10-09 date: "2024-10-09T23:50:46+00:00"
categories: art categories: art
--- ---
+1 -1
View File
@@ -1,7 +1,7 @@
--- ---
layout: post layout: post
title: Dresden_000512370019.jpg title: Dresden_000512370019.jpg
date: 2024-10-09 date: "2024-10-09T23:50:47+00:00"
categories: art categories: art
--- ---
+1 -1
View File
@@ -1,7 +1,7 @@
--- ---
layout: post layout: post
title: Dresden_000512370032.jpg title: Dresden_000512370032.jpg
date: 2024-10-09 date: "2024-10-09T23:50:48+00:00"
categories: art categories: art
--- ---
+1 -1
View File
@@ -1,7 +1,7 @@
--- ---
layout: post layout: post
title: Dresden_000512370033.jpg title: Dresden_000512370033.jpg
date: 2024-10-09 date: "2024-10-09T23:50:49+00:00"
categories: art categories: art
--- ---
+1 -1
View File
@@ -1,7 +1,7 @@
--- ---
layout: post layout: post
title: Dresden_000512370034.jpg title: Dresden_000512370034.jpg
date: 2024-10-09 date: "2024-10-09T23:50:50+00:00"
categories: art categories: art
--- ---
+1 -1
View File
@@ -1,7 +1,7 @@
--- ---
layout: post layout: post
title: Grandmother's-old-room.jpg title: Grandmother's-old-room.jpg
date: 2024-10-09 date: "2024-10-09T23:40:56+00:00"
categories: art categories: art
--- ---
+2 -1
View File
@@ -1,8 +1,9 @@
--- ---
layout: post layout: post
title: Home_000512360003.jpg title: Home_000512360003.jpg
date: 2024-10-09 date: "2024-10-09T23:40:59+00:00"
categories: art categories: art
anchor: "Iran - Tehran & Qom"
--- ---
![Home](/img/arts/dresden-prague-iran-2024/Home_000512360003.jpg) ![Home](/img/arts/dresden-prague-iran-2024/Home_000512360003.jpg)
@@ -1,7 +1,7 @@
--- ---
layout: post layout: post
title: Let-me-tell-you-a-story_000512370015.jpg title: Let-me-tell-you-a-story_000512370015.jpg
date: 2024-10-09 date: "2024-10-09T23:50:51+00:00"
categories: art categories: art
--- ---
+1 -1
View File
@@ -1,7 +1,7 @@
--- ---
layout: post layout: post
title: Prague_000512360019.jpg title: Prague_000512360019.jpg
date: 2024-10-09 date: "2024-10-09T23:30:49+00:00"
categories: art categories: art
--- ---
+1 -1
View File
@@ -1,7 +1,7 @@
--- ---
layout: post layout: post
title: Prague_000512360020.jpg title: Prague_000512360020.jpg
date: 2024-10-09 date: "2024-10-09T23:30:50+00:00"
categories: art categories: art
--- ---
+1 -1
View File
@@ -1,7 +1,7 @@
--- ---
layout: post layout: post
title: Prague_000512360021.jpg title: Prague_000512360021.jpg
date: 2024-10-09 date: "2024-10-09T23:30:51+00:00"
categories: art categories: art
--- ---
+1 -1
View File
@@ -1,7 +1,7 @@
--- ---
layout: post layout: post
title: Prague_000512360027.jpg title: Prague_000512360027.jpg
date: 2024-10-09 date: "2024-10-09T23:30:52+00:00"
categories: art categories: art
--- ---
+1 -1
View File
@@ -1,7 +1,7 @@
--- ---
layout: post layout: post
title: Prague_000512360029.jpg title: Prague_000512360029.jpg
date: 2024-10-09 date: "2024-10-09T23:30:53+00:00"
categories: art categories: art
--- ---
+1 -1
View File
@@ -1,7 +1,7 @@
--- ---
layout: post layout: post
title: Prague_000512360030.jpg title: Prague_000512360030.jpg
date: 2024-10-09 date: "2024-10-09T23:30:54+00:00"
categories: art categories: art
--- ---
+1 -1
View File
@@ -1,7 +1,7 @@
--- ---
layout: post layout: post
title: Prague_000512360031.jpg title: Prague_000512360031.jpg
date: 2024-10-09 date: "2024-10-09T23:30:55+00:00"
categories: art categories: art
--- ---
+1 -1
View File
@@ -1,7 +1,7 @@
--- ---
layout: post layout: post
title: Prague_000512370012.jpg title: Prague_000512370012.jpg
date: 2024-10-09 date: "2024-10-09T23:30:56+00:00"
categories: art categories: art
--- ---
+1 -1
View File
@@ -1,7 +1,7 @@
--- ---
layout: post layout: post
title: Somewhere-in-Tehran.jpg title: Somewhere-in-Tehran.jpg
date: 2024-10-09 date: "2024-10-09T23:40:57+00:00"
categories: art categories: art
--- ---
+1 -1
View File
@@ -1,7 +1,7 @@
--- ---
layout: post layout: post
title: Somewhere-in-Tehran_2.jpg title: Somewhere-in-Tehran_2.jpg
date: 2024-10-09 date: "2024-10-09T23:40:58+00:00"
categories: art categories: art
--- ---
+1 -1
View File
@@ -1,7 +1,7 @@
--- ---
layout: post layout: post
title: x_000512350001.jpg title: x_000512350001.jpg
date: 2024-10-09 date: "2024-10-09T23:50:52+00:00"
categories: art categories: art
--- ---
+1 -1
View File
@@ -1,7 +1,7 @@
--- ---
layout: post layout: post
title: x_000512350002.jpg title: x_000512350002.jpg
date: 2024-10-09 date: "2024-10-09T23:50:53+00:00"
categories: art categories: art
--- ---
+1 -1
View File
@@ -1,7 +1,7 @@
--- ---
layout: post layout: post
title: x_000512350003.jpg title: x_000512350003.jpg
date: 2024-10-09 date: "2024-10-09T23:20:54+00:00"
categories: art categories: art
--- ---
+1 -1
View File
@@ -1,7 +1,7 @@
--- ---
layout: post layout: post
title: x_000512350004.jpg title: x_000512350004.jpg
date: 2024-10-09 date: "2024-10-09T23:20:55+00:00"
categories: art categories: art
--- ---
+1 -1
View File
@@ -1,7 +1,7 @@
--- ---
layout: post layout: post
title: x_000512350006.jpg title: x_000512350006.jpg
date: 2024-10-09 date: "2024-10-09T23:20:56+00:00"
categories: art categories: art
--- ---
+1 -1
View File
@@ -1,7 +1,7 @@
--- ---
layout: post layout: post
title: x_000512350011.jpg title: x_000512350011.jpg
date: 2024-10-09 date: "2024-10-09T23:20:57+00:00"
categories: art categories: art
--- ---
+1 -1
View File
@@ -1,7 +1,7 @@
--- ---
layout: post layout: post
title: x_000512350012.jpg title: x_000512350012.jpg
date: 2024-10-09 date: "2024-10-09T23:20:58+00:00"
categories: art categories: art
--- ---
+2 -1
View File
@@ -1,8 +1,9 @@
--- ---
layout: post layout: post
title: x_000512350014.jpg title: x_000512350014.jpg
date: 2024-10-09 date: "2024-10-09T23:20:59+00:00"
categories: art categories: art
anchor: "Belfast & Tallaght"
--- ---
![x](/img/arts/dresden-prague-iran-2024/x_000512350014.jpg) ![x](/img/arts/dresden-prague-iran-2024/x_000512350014.jpg)
+1 -1
View File
@@ -1,7 +1,7 @@
--- ---
layout: post layout: post
title: x_000512370003.jpg title: x_000512370003.jpg
date: 2024-10-09 date: "2024-10-09T23:30:57+00:00"
categories: art categories: art
--- ---
+1 -1
View File
@@ -1,7 +1,7 @@
--- ---
layout: post layout: post
title: x_000512370005.jpg title: x_000512370005.jpg
date: 2024-10-09 date: "2024-10-09T23:30:58+00:00"
categories: art categories: art
--- ---
+2 -1
View File
@@ -1,8 +1,9 @@
--- ---
layout: post layout: post
title: x_000512370006.jpg title: x_000512370006.jpg
date: 2024-10-09 date: "2024-10-09T23:30:59+00:00"
categories: art categories: art
anchor: "Prague"
--- ---
![x](/img/arts/dresden-prague-iran-2024/x_000512370006.jpg) ![x](/img/arts/dresden-prague-iran-2024/x_000512370006.jpg)
+1 -1
View File
@@ -1,7 +1,7 @@
--- ---
layout: post layout: post
title: x_000512370013.jpg title: x_000512370013.jpg
date: 2024-10-09 date: "2024-10-09T23:50:54+00:00"
categories: art categories: art
--- ---
+1 -1
View File
@@ -1,7 +1,7 @@
--- ---
layout: post layout: post
title: x_000512370022.jpg title: x_000512370022.jpg
date: 2024-10-09 date: "2024-10-09T23:50:55+00:00"
categories: art categories: art
--- ---
+1 -1
View File
@@ -1,7 +1,7 @@
--- ---
layout: post layout: post
title: x_000512370024.jpg title: x_000512370024.jpg
date: 2024-10-09 date: "2024-10-09T23:50:56+00:00"
categories: art categories: art
--- ---
+1 -1
View File
@@ -1,7 +1,7 @@
--- ---
layout: post layout: post
title: x_000512370026.jpg title: x_000512370026.jpg
date: 2024-10-09 date: "2024-10-09T23:50:57+00:00"
categories: art categories: art
--- ---
+1 -1
View File
@@ -1,7 +1,7 @@
--- ---
layout: post layout: post
title: x_000512370027.jpg title: x_000512370027.jpg
date: 2024-10-09 date: "2024-10-09T23:50:58+00:00"
categories: art categories: art
--- ---
+2 -1
View File
@@ -1,8 +1,9 @@
--- ---
layout: post layout: post
title: x_000512370028.jpg title: x_000512370028.jpg
date: 2024-10-09 date: "2024-10-09T23:50:59+00:00"
categories: art categories: art
anchor: "Dresden & Berlin"
--- ---
![x](/img/arts/dresden-prague-iran-2024/x_000512370028.jpg) ![x](/img/arts/dresden-prague-iran-2024/x_000512370028.jpg)
+52 -3
View File
@@ -44,6 +44,7 @@ collection_groups = [
"Bistoon_000521270027.jpg", "Bistoon_000521270026.jpg", "Bistoon_000521270027.jpg", "Bistoon_000521270026.jpg",
"Bistoon_000521270025.jpg", "Bazaar-e-Tabriz_000521270010.jpg", "Bistoon_000521270025.jpg", "Bazaar-e-Tabriz_000521270010.jpg",
"Bazaar-e-Tabriz_000521270009.jpg", "Bazaar-e-Tabriz_000521270008.jpg", "Bazaar-e-Tabriz_000521270009.jpg", "Bazaar-e-Tabriz_000521270008.jpg",
("dresden-prague-iran-2024", "Babataher.jpg"),
], ],
), ),
( (
@@ -60,6 +61,53 @@ collection_groups = [
"Kazakhstan_DSC-0870.jpg", "Kazakhstan_DSC-0865.jpg", "Kazakhstan_DSC-0870.jpg", "Kazakhstan_DSC-0865.jpg",
], ],
), ),
(
"dresden-prague-iran-2024",
datetime(2024, 10, 9, 23, 50, 59, tzinfo=timezone.utc),
"Dresden & Berlin",
[
"x_000512370028.jpg", "x_000512370027.jpg", "x_000512370026.jpg",
"x_000512370024.jpg", "x_000512370022.jpg", "x_000512370013.jpg",
"x_000512350002.jpg", "x_000512350001.jpg",
"Let-me-tell-you-a-story_000512370015.jpg", "Dresden_000512370034.jpg",
"Dresden_000512370033.jpg", "Dresden_000512370032.jpg",
"Dresden_000512370019.jpg", "Dresden_000512370018.jpg",
"Dresden_000512370017.jpg", "Dresden_000512370016.jpg",
],
),
(
"dresden-prague-iran-2024",
datetime(2024, 10, 9, 23, 40, 59, tzinfo=timezone.utc),
"Iran - Tehran & Qom",
[
"Home_000512360003.jpg", "Somewhere-in-Tehran_2.jpg",
"Somewhere-in-Tehran.jpg", "Grandmother's-old-room.jpg",
],
),
(
"dresden-prague-iran-2024",
datetime(2024, 10, 9, 23, 30, 59, tzinfo=timezone.utc),
"Prague",
[
"x_000512370006.jpg", "x_000512370005.jpg", "x_000512370003.jpg",
"Prague_000512370012.jpg", "Prague_000512360031.jpg",
"Prague_000512360030.jpg", "Prague_000512360029.jpg",
"Prague_000512360027.jpg", "Prague_000512360021.jpg",
"Prague_000512360020.jpg", "Prague_000512360019.jpg",
],
),
(
"dresden-prague-iran-2024",
datetime(2024, 10, 9, 23, 20, 59, tzinfo=timezone.utc),
"Belfast & Tallaght",
[
"x_000512350014.jpg", "x_000512350012.jpg", "x_000512350011.jpg",
"x_000512350006.jpg", "x_000512350004.jpg", "x_000512350003.jpg",
"Bobby-Sands.jpg", "Belfast_000512350032.jpg",
"Belfast_000512350027.jpg", "Belfast_000512350026.jpg",
"Belfast_000512350022.jpg", "Belfast_000512350018.jpg",
],
),
] ]
anchors = {armenia[0]: "Armenia", romania[0]: "Romania"} anchors = {armenia[0]: "Armenia", romania[0]: "Romania"}
@@ -95,8 +143,9 @@ for position, (job, index) in enumerate(ordered):
target.write_text("\n".join(lines) + "\n") target.write_text("\n".join(lines) + "\n")
for folder, group_start, anchor, filenames in collection_groups: for folder, group_start, anchor, filenames in collection_groups:
for position, filename in enumerate(filenames): for position, member in enumerate(filenames):
image = f"/img/arts/{folder}/{filename}" member_folder, filename = member if isinstance(member, tuple) else (folder, member)
image = f"/img/arts/{member_folder}/{filename}"
matches = [path for path in ART.glob("*.md") if image in path.read_text()] matches = [path for path in ART.glob("*.md") if image in path.read_text()]
assert len(matches) == 1, (image, matches) assert len(matches) == 1, (image, matches)
path = matches[0] path = matches[0]
@@ -110,4 +159,4 @@ for folder, group_start, anchor, filenames in collection_groups:
json.dumps(anchor) + "\n", 1) json.dumps(anchor) + "\n", 1)
path.write_text(content) path.write_text(content)
print("Organized Armenia, Romania, Iran, and Kazakhstan into contiguous highlights") print("Organized all configured photo highlights into contiguous groups")
+42 -12
View File
@@ -14,8 +14,8 @@ ROMANIA = [f"/img/arts/uploads/{JOB}/{index:02}.jpg" for index in (0, 1)] + [
for index in range(5)] + [ for index in range(5)] + [
"/img/arts/uploads/260cc99527c13f256d4ea39d0959f5daa942c888ea882852e73fd94f6c30b7db/00.jpg", "/img/arts/uploads/260cc99527c13f256d4ea39d0959f5daa942c888ea882852e73fd94f6c30b7db/00.jpg",
"/img/arts/uploads/b18a2f1c7127077c801160782012cb164759f0b9dd41762205b45e4c9a07d673/00.jpg"] "/img/arts/uploads/b18a2f1c7127077c801160782012cb164759f0b9dd41762205b45e4c9a07d673/00.jpg"]
COLLECTIONS = { COLLECTIONS = [
"iran-analog-2024": [ ("Iran - Hamadan, Kermanshah, Tabriz", [
"Taq-e-Bostan_000521270020.jpg", "Taq-e-Bostan_000521270019.jpg", "Taq-e-Bostan_000521270020.jpg", "Taq-e-Bostan_000521270019.jpg",
"Taq-e-Bostan_000521270018.jpg", "Tabriz_000521270013.jpg", "Taq-e-Bostan_000521270018.jpg", "Tabriz_000521270013.jpg",
"Tabriz_000521270012.jpg", "Iran_000521270023.jpg", "Tabriz_000521270012.jpg", "Iran_000521270023.jpg",
@@ -26,8 +26,9 @@ COLLECTIONS = {
"Bistoon_000521270027.jpg", "Bistoon_000521270026.jpg", "Bistoon_000521270027.jpg", "Bistoon_000521270026.jpg",
"Bistoon_000521270025.jpg", "Bazaar-e-Tabriz_000521270010.jpg", "Bistoon_000521270025.jpg", "Bazaar-e-Tabriz_000521270010.jpg",
"Bazaar-e-Tabriz_000521270009.jpg", "Bazaar-e-Tabriz_000521270008.jpg", "Bazaar-e-Tabriz_000521270009.jpg", "Bazaar-e-Tabriz_000521270008.jpg",
], "Babataher.jpg",
"kazakhstan-2024": [ ]),
("Kazakhstan - World Nomad Games", [
"x_DSC-0999.jpg", "x_DSC-0994.jpg", "x_DSC-0999.jpg", "x_DSC-0994.jpg",
"World-Nomad-Games,-Kazakhstan_DSC-0685.jpg", "World-Nomad-Games,-Kazakhstan_DSC-0685.jpg",
"World-Nomad-Games,-Kazakhstan_DSC-0536.jpg", "World-Nomad-Games,-Kazakhstan_DSC-0536.jpg",
@@ -35,8 +36,35 @@ COLLECTIONS = {
"World-Nomad-Games,-Kazakhstan_DSC-0298.jpg", "World-Nomad-Games,-Kazakhstan_DSC-0298.jpg",
"World-Nomad-Games,-Kazakhstan_DSC-0251.jpg", "World-Nomad-Games,-Kazakhstan_DSC-0251.jpg",
"Kazakhstan_DSC-0870.jpg", "Kazakhstan_DSC-0865.jpg", "Kazakhstan_DSC-0870.jpg", "Kazakhstan_DSC-0865.jpg",
], ]),
} ("Dresden & Berlin", [
"x_000512370028.jpg", "x_000512370027.jpg", "x_000512370026.jpg",
"x_000512370024.jpg", "x_000512370022.jpg", "x_000512370013.jpg",
"x_000512350002.jpg", "x_000512350001.jpg",
"Let-me-tell-you-a-story_000512370015.jpg", "Dresden_000512370034.jpg",
"Dresden_000512370033.jpg", "Dresden_000512370032.jpg",
"Dresden_000512370019.jpg", "Dresden_000512370018.jpg",
"Dresden_000512370017.jpg", "Dresden_000512370016.jpg",
]),
("Iran - Tehran & Qom", [
"Home_000512360003.jpg", "Somewhere-in-Tehran_2.jpg",
"Somewhere-in-Tehran.jpg", "Grandmother's-old-room.jpg",
]),
("Prague", [
"x_000512370006.jpg", "x_000512370005.jpg", "x_000512370003.jpg",
"Prague_000512370012.jpg", "Prague_000512360031.jpg",
"Prague_000512360030.jpg", "Prague_000512360029.jpg",
"Prague_000512360027.jpg", "Prague_000512360021.jpg",
"Prague_000512360020.jpg", "Prague_000512360019.jpg",
]),
("Belfast & Tallaght", [
"x_000512350014.jpg", "x_000512350012.jpg", "x_000512350011.jpg",
"x_000512350006.jpg", "x_000512350004.jpg", "x_000512350003.jpg",
"Bobby-Sands.jpg", "Belfast_000512350032.jpg", "Belfast_000512350027.jpg",
"Belfast_000512350026.jpg", "Belfast_000512350022.jpg",
"Belfast_000512350018.jpg",
]),
]
class PhotoHighlightTests(unittest.TestCase): class PhotoHighlightTests(unittest.TestCase):
@@ -58,18 +86,20 @@ class PhotoHighlightTests(unittest.TestCase):
self.assertIn("Transmission of Flesh by Erfan Ashourioun", grouped[2][3]) self.assertIn("Transmission of Flesh by Erfan Ashourioun", grouped[2][3])
def test_existing_collection_highlight_starts(self): def test_existing_collection_highlight_starts(self):
iran = (ART / "2024-10-25-Taq-e-Bostan_000521270020.md").read_text() for anchor, filenames in COLLECTIONS:
kazakhstan = (ART / "2024-10-09-x_DSC-0999.md").read_text() first = next(path for path in ART.glob("*.md")
self.assertIn('anchor: "Iran - Hamadan, Kermanshah, Tabriz"', iran) if filenames[0] in path.read_text())
self.assertIn('anchor: "Kazakhstan - World Nomad Games"', kazakhstan) self.assertIn(f'anchor: "{anchor}"', first.read_text())
def test_existing_collection_order_uses_distinct_seconds(self): def test_existing_collection_order_uses_distinct_seconds(self):
for folder, filenames in COLLECTIONS.items(): for _, filenames in COLLECTIONS:
records = [] records = []
for path in ART.glob("*.md"): for path in ART.glob("*.md"):
content = path.read_text() content = path.read_text()
image = re.search(rf'/img/arts/{folder}/([^\s)"\']+)', content) image = re.search(r'/img/arts/[^/]+/([^)]+)\)', content)
if image: if image:
if image.group(1) not in filenames:
continue
date = re.search(r'^date: "([^"]+)"', content, re.MULTILINE) date = re.search(r'^date: "([^"]+)"', content, re.MULTILINE)
records.append((datetime.fromisoformat(date.group(1)), image.group(1))) records.append((datetime.fromisoformat(date.group(1)), image.group(1)))
records.sort(reverse=True) records.sort(reverse=True)