diff --git a/server/operators/vidgod_index/run.py b/server/operators/vidgod_index/run.py index 2e1daeb..d81dee1 100644 --- a/server/operators/vidgod_index/run.py +++ b/server/operators/vidgod_index/run.py @@ -41,7 +41,7 @@ if p.get("no_whisper", False): print("+", " ".join(cmd), flush=True) subprocess.run(cmd, check=True, stderr=sys.stdout) -db = sqlite3.connect(vg / "library/clips.sqlite") +db = sqlite3.connect(vg / "library/clips.sqlite", timeout=30) row = db.execute( """SELECT v.id, v.duration, COUNT(DISTINCT s.id), COUNT(DISTINCT g.id) FROM videos v LEFT JOIN shots s ON s.video_id=v.id