forked from andrew/feedmill-recounter
Review of the compression branch (ce93c68..d7c1415): one Important and the cheap real Minors, each with a RED test first. - app.py: drop the manual Content-Length override - it broke ranged requests (206 announcing the full length while sending a slice). send_file sets it and the 206/Content-Range itself. - app.py: the download route serves video extensions only, never the temp of an encode in flight. - src/compress.py: the encode temp is unique per attempt (mkstemp), is validated (playable video) and fsynced before it replaces the original; a failing os.replace keeps the original and cleans the temp up instead of raising into the route. The compressed video keeps the source mode. - src/compress.py: a stale temp of a killed encode is swept after 2 h instead of the 5-day video expiry. - src/job.py: cancelled and failed jobs are not re-encoded; the job shows "Compressing..." while the encode runs. - ERD.md: the $OUTPUT_DIR/*_compressed.mp4 row is gone. 328 tests pass (was 319).