From 4868c2222f25353908942dda6eae2bb0665ccf71 Mon Sep 17 00:00:00 2001 From: laqieer Date: Fri, 30 Aug 2024 21:04:49 +0800 Subject: [PATCH] Fix playback order of earth quest story scripts in index --- 1_render_pages.py | 2 +- pages/EarthQuestStoryPlayback.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/1_render_pages.py b/1_render_pages.py index 361b535a6..6fc862761 100644 --- a/1_render_pages.py +++ b/1_render_pages.py @@ -198,7 +198,7 @@ def build_index_page(masterdata_folder): for episode_id in chapter['episode_ids']: episode = EarthQuestEpisode[episode_id] f_index.write(f"### {episode['episode_name']}\n\n") - for story_id in episode['story_ids']: + for story_id in sorted(episode['story_ids'], key=lambda x: EarthQuestStoryPlayback[x]['timing_StoryPlaybackTiming']): story = EarthQuestStoryPlayback[story_id] script_id = story['script_id'] f_index.write(f"- [{script_id} {story['title']}]({script_id}.md)\n") diff --git a/pages/EarthQuestStoryPlayback.md b/pages/EarthQuestStoryPlayback.md index 9e8dab8b5..8cc77927e 100644 --- a/pages/EarthQuestStoryPlayback.md +++ b/pages/EarthQuestStoryPlayback.md @@ -10,9 +10,9 @@ ### 七魔王 +- [900030001 七魔王 開始前](900030001.md) - [900030002 七魔王 開始時](900030002.md) - [900030003 七魔王 終了後](900030003.md) -- [900030001 七魔王 開始前](900030001.md) ## 1章 大樹を目指して @@ -30,9 +30,9 @@ ### 第4話 孤高のキラーメイル -- [901040002 第4話 孤高のキラーメイル ロンギヌスとの戦闘](901040002.md) - [901040003 第4話 孤高のキラーメイル 開始時](901040003.md) - [901040004 第4話 孤高のキラーメイル 終了後](901040004.md) +- [901040002 第4話 孤高のキラーメイル ロンギヌスとの戦闘](901040002.md) ### 第5話 夢の国