This commit is contained in:
mike
2026-06-26 17:28:17 +02:00
parent 37bf5281c3
commit 61cd2e559b
14 changed files with 451 additions and 3418 deletions

View File

@@ -132,6 +132,14 @@ def get_status_summary(output_dir: str) -> dict:
return result
def delete_state(output_dir: str, group_id: str):
"""Wipe all cached views, state, and video for this group."""
import shutil
d = cache_dir(output_dir, group_id)
if os.path.isdir(d):
shutil.rmtree(d)
def get_group_video(output_dir: str, group_id: str) -> Optional[str]:
"""Return the video path if the turntable is complete and the file exists."""
st = load_state(output_dir, group_id)