Full patched app.py/index.html plus rebaseable diff. Deployed via bind-mounts from the share (documents/reclip/); this repo is the versioned source of truth so container/image updates and new machines cannot lose the patch. Rebase instructions in patches/reclip/README.md.
2.1 KiB
2.1 KiB
Patched reclip — source of truth
Our transcription + history additions to averygan/reclip, kept here so container updates and new machines can't lose them.
app.py,index.html— the full patched files (deployed via bind-mounts fromdocuments/reclip/on the Unraid share; see that dir's DEPLOY.md)reclip-transcript.patch— the same delta as a diff against upstream, for rebasing onto future upstream versions
Patch base: upstream 1d161d1 (cloned 2026-10-25).
What the patch adds
fetch_transcript()— after each download, pull yt-dlp captions (YouTube subs; X auto-captions) →<stem>.txtsidecar, never fails the job/api/transcript/<job_id>+ Transcript button + auto-save in the UI- Persisted download history (
history.jsonin the downloads volume) +/api/history+ History section with a live transcript-available flag (manualyt-transcribesidecars are detected at read time) /api/file+/api/transcriptfall back to history, so old links survive restarts
Updating reclip (when upstream changes)
git clone --depth 1 https://github.com/averygan/reclip.git /tmp/reclip-new
cd /tmp/reclip-new
git apply --3way ~/Documents/dotfiles/patches/reclip/reclip-transcript.patch
Resolve any conflicts (the additions are mostly self-contained: one new
function, two routes, one status field, UI button + History section), then
copy the updated app.py + templates/index.html:
- into this directory (commit — new source of truth)
- to the share:
/Volumes/data/documents/reclip/{app.py,index.html} - restart the reclip container (gunicorn reloads at start; the entrypoint also pip-updates yt-dlp at every container start)
If git apply fails on a drifted file, the fastest path is re-porting by
hand from the conflict markers — the four additions are small and greppable
(fetch_transcript, history.json, resolve_download, saveTranscript).
If an image update happens WITHOUT re-porting: the old patched files keep working (bind-mounts win), you just may miss upstream improvements.