Skip to content

Commit

Permalink
Fix playback order of earth quest story scripts in index
Browse files Browse the repository at this point in the history
  • Loading branch information
laqieer committed Aug 30, 2024
1 parent 1603c0d commit 4868c22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion 1_render_pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
4 changes: 2 additions & 2 deletions pages/EarthQuestStoryPlayback.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@

### 七魔王

- [900030001 七魔王 開始前](900030001.md)
- [900030002 七魔王 開始時](900030002.md)
- [900030003 七魔王 終了後](900030003.md)
- [900030001 七魔王 開始前](900030001.md)

## 1章 大樹を目指して

Expand All @@ -30,9 +30,9 @@

### 第4話 孤高のキラーメイル

- [901040002 第4話 孤高のキラーメイル ロンギヌスとの戦闘](901040002.md)
- [901040003 第4話 孤高のキラーメイル 開始時](901040003.md)
- [901040004 第4話 孤高のキラーメイル 終了後](901040004.md)
- [901040002 第4話 孤高のキラーメイル ロンギヌスとの戦闘](901040002.md)

### 第5話 夢の国

Expand Down

0 comments on commit 4868c22

Please sign in to comment.