From 4101498ad79a62dac0245ec8650ed75fb01f8064 Mon Sep 17 00:00:00 2001 From: Brandyn / Techy Date: Sat, 31 Oct 2026 16:19:58 -0500 Subject: [PATCH] Sweep: fix gap-total parsing so FILL_GAPS_MS actually triggers Co-Authored-By: Claude Fable 5.1 --- bin/normalize-sweep.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/normalize-sweep.sh b/bin/normalize-sweep.sh index 56ebaf1..bcc0443 100755 --- a/bin/normalize-sweep.sh +++ b/bin/normalize-sweep.sh @@ -134,7 +134,7 @@ PYEOF fi # opt-in gap filling: switch this stream from remux to a CFR re-encode when the holes add up to enough if (( FILL_GAPS_MS > 0 )) && [[ $verdict == remux && -n $tcjson ]]; then - missing=$(python3 -c 'import json,sys; d=json.loads(json.loads(sys.argv[1])); print(d.get("gaps",{}).get("total_missing_ms",0))' "$tcjson" 2>/dev/null || echo 0) + missing=$(python3 -c 'import json,sys; d=json.loads(sys.argv[1]); print(d.get("gaps",{}).get("total_missing_ms",0))' "$tcjson" 2>/dev/null || echo 0) if (( missing >= FILL_GAPS_MS )); then verdict=encode; reason="fill-gaps ${missing}ms"; log "gaps $src ${missing} ms missing -> CFR re-encode (FILL_GAPS_MS=$FILL_GAPS_MS)" fi