- Image fields take frameFrom/frameWhen: "Frame at" saves a still from
the row's YouTube or Facebook link to /uploads/thumbnails/
(POST /api/admin/video-frame, grabFrame in clips.js). Used on video
featured cards.
- clock/parseClock moved to src/lib/clock.ts, shared with Video clips.
- Newsletter: new drafts no longer store source 'events' (the Pick from
select's blank choice), which showed as "events no longer exists";
older drafts load it as blank.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Save to library and Save to Drive on a finished download, not only on
clips. The download stays on the server to cut clips from either way;
a clip's library save still clears its working file.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Save to Drive, beside Save to library, puts a finished clip in a folder
under Media (Videos or Audio chosen first to match it) as a Files
entry, shared by link, so pages can link to it (migration 051). The
clip streams from disk through a resumable upload, so a long one
isn't read into memory. A clip can be in both the library and Drive.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When YouTube answers the server with "sign in to confirm you're not a
bot", yt-dlp needs a signed-in account's cookies. YTDLP_COOKIES points
at an exported cookies.txt, copied per download so the original is
never rewritten; YTDLP_COOKIES_FROM_BROWSER passes yt-dlp's
--cookies-from-browser for a browser on the server. Setup, and the
advice to use a separate account, is in docs/video-clips.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tools → Video clips (migration 036, admins and up). Paste a YouTube
or Facebook link and the server downloads it with yt-dlp; then cut
clips: start and end set while watching, a shape (as filmed, 16:9,
square or 9:16 at the sizes the platforms ask for, cropped around a
chosen point shown over the video), and MP4 video or MP3 audio.
Jobs queue and run one at a time with progress. Only YouTube and
Facebook links are accepted, and both tools run with argument lists,
never a shell. A clip's file is deleted once it has been downloaded
in full, unless it's saved to the media library first, which now
holds video and audio (image fields still pick images only).
Everything is swept a day after it's made. Setup is in
docs/video-clips.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>