Repository navigation
Retried jobs leave the jobs page, captions outlast clean-up, a changed re-download is worked on afresh - #25
Merged
Merged
Conversation
Retry queues a new job and leaves the old row as it was, so the failed job stayed under Recent with its Retry button still showing. The listing now leaves out a failed or cancelled job when a later job of the same kind, episode and payload exists. The row itself is kept, along with its timings. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_015uaDJg4o8vw6uDYdNhUZhX
Clean-up deleted every saved transcript with the download, so an episode downloaded again was sent to the transcription service once more. Captions the service made (with their word times and speaker turns) now stay on an expired episode for CAPTIONS_DAYS, and the next download uses them: the feed's transcripts are fetched again beside them, kept only for checking, as before the clean-up. After a year they go, unless someone keeps the episode. The episode page leaves kept captions out until there is a cut to fit them to. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_015uaDJg4o8vw6uDYdNhUZhX
Captions kept from before a clean-up were reused whatever the next download was. A show that puts its ads in as each download is made sends different audio each time, and everything after a changed ad moves, so the old times no longer fit. Captions now record the SHA-256 of the download they were made from; after a new download, kept captions that don't match it are deleted and the episode is transcribed again. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_015uaDJg4o8vw6uDYdNhUZhX
A cleaned-up episode keeps its fingerprint for 30 days, and its hand cuts for good, all timed to the file it was first downloaded as. A show that puts its ads in as each download is made sends a different file each time, so "Download again" cut it at the old file's times. The episode now records the SHA-256 of its download (migration 20). When a new download differs, its fingerprint, where blocks play in it, its report and comparisons, the hand cuts and kept stretches on its timeline, and its captions all go: it is fingerprinted, compared and transcribed again. This replaces the captions' own check from the last commit. Episodes downloaded before this have no SHA-256 yet and are taken to be the same file. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_015uaDJg4o8vw6uDYdNhUZhX
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Retried jobs leave the jobs page
Retry queued a new job but left the failed one under Recent with its Retry button. The listing now leaves out a failed or cancelled job once a later job of the same kind, episode and payload exists. The row and its timings stay.
Captions outlast clean-up
Clean-up deleted every saved transcript with the download, so downloading an episode again meant sending it to the transcription service again.
CAPTIONS_DAYSinretention.py), then go unless someone keeps the episode.captions.vttleave kept captions out until there's a cut to fit them to.A changed re-download is worked on afresh
Shows that insert ads per download send a different file each time, and everything after a changed ad moves. Re-downloads were reusing the old fingerprint (kept 30 days), hand cuts and captions, all timed to the old file.
episodes.original_sha256).processing._new_downloaddrops the fingerprint, where blocks play in it, the report and comparisons, hand cuts, kept "Don't cut this" stretches, and captions. The episode is then fingerprinted, compared and transcribed again.Tests
test_schema.py, and the upgrade test intest_web.pydrops the new column too.Generated by Claude Code