# -*- coding: utf-8 -*-
import io, sys, os, re
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding="utf-8")
os.chdir(r"D:\work buddy\2026-11-05-14-15-52")
t=open("index_main.html",encoding="utf-8").read()
prog=t[t.find("const PROGRAMS="):t.find("const CATD=")]
dets=["details/ut-c0e5352.html","details/ut-c5760ab.html","details/ut-c90d689.html","details/ut-c529fb8.html","details/ut-c4ca221.html"]
for d in dets:
    print(d,"| PROG",("IN" if d in prog else "no"),"| disk",("exists" if os.path.exists(d) else "absent"))
# 查 UT 已有 id
for m in re.finditer(r'\{id:"(ut-[^"]+)"',prog):
    print(" existing:",m.group(1))
