-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug_config.py
More file actions
29 lines (24 loc) · 1.01 KB
/
Copy pathdebug_config.py
File metadata and controls
29 lines (24 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
生成された config.json を確認
"""
import json
try:
with open('output/presentation_config.json', 'r', encoding='utf-8') as f:
config = json.load(f)
print('📋 Config structure:')
for part, part_data in config.items():
print(f'\n{part}:')
print(f' Title: {part_data.get("title")}')
print(f' Slides: {len(part_data.get("slides", []))}')
for i, slide in enumerate(part_data.get("slides", [])[:3]):
print(f' [{i+1}] title: {slide.get("title", "N/A")[:50]}')
print(f' audio_files: {len(slide.get("audio_files", []))} files')
print(f' duration: {slide.get("total_duration")}s')
if len(part_data.get("slides", [])) > 3:
print(f' ... ({len(part_data["slides"]) - 3} more)')
except FileNotFoundError:
print('❌ presentation_config.json not found')
except json.JSONDecodeError as e:
print(f'❌ JSON decode error: {e}')