2 Commits
Author SHA1 Message Date
Lee Hanken a3844addc5 Retry transient network failures instead of treating them as 404
Found via a real user bug report: a first detect run on an episode fell
through to a worse, flagged signal; a forced re-run with no code or data
changes resolved cleanly. The only explanation is a transient fetch
failure on the first run -- _fetch_bytes caught URLError/HTTPError/
TimeoutError identically and returned None for all of them, so a dropped
connection or a momentary timeout was silently treated the same as the
content genuinely not existing. That false conclusion then got written
to the ledger and stayed there, since cli.py's ledger.is_done() check
treats any prior result (flagged or not) as done until --force.

Now retries a couple of times (short delay between attempts) on
URLError/TimeoutError, which mean the request never got a real answer
from the server at all. HTTPError is never retried -- the server did
answer, so that's real signal (403/404/etc), not noise.
2026-11-22 15:45:19 +00:00
Lee Hanken 9917320640 hpr-intro-stripper: layered intro/outro cut-point detection and trimming
Fetches HPR's own metadata, audio, and official transcripts live; falls
back to local speech recognition (tiny model, matching HPR's own
hpr-get-and-transcribe.bash tooling) only when needed, and to
correlation against vendored reference clips or sibling episodes
otherwise. License-aware, resumable, and never guesses -- flags
anything it isn't confident about for manual review rather than
producing a plausible-looking wrong cut.
2026-11-22 10:36:07 +00:00