Skip to content

Recording and clean-up ​

Watch list ​

The watch list (watch.py) lives in the database (channels.enabled); [[channels]] in the config only seeds it on the first start. Add on the Streamers page checks the account on Twitch and saves its Twitch id; the streamer goes last in the priority order and is recorded in the default category unless others are picked (Twitch category search). Each clip remembers its category (candidates.game_id): captions say "playing" followed by the category's name (or "streaming in" for Just Chatting and the like), posts start with the category's hashtag, and the hashtag pool is posts.hashtag_pool for the default category and posts.other_hashtag_pool for the rest. Remove shows what goes, stops watching at once (their clips and open posts leave every list) and the monitor deletes their files once nothing of theirs records or renders, as clips remove-streamer does. Recorder units need root: the site writes /var/lib/clips/watchlist.stamp, and clips-recorders.path runs deploy/recorders.sh, which reads the watched logins as the clips user and starts or stops clips-record@<login> (also every 5 minutes from clips-recorders.timer).

Streamers page ​

Priority streamers get a recording slot first whenever they are live in their category, taking it from an Auto streamer; Off is never recorded. "Record instead of X" and "Stop for this stream" last until that stream ends. Otherwise a running recording is never stopped for another one. Stored in channel_prefs; the monitor applies them on its next poll (twitch.poll_interval_s). Each streamer also shows where their webcam was last measured, with the frame and the box drawn on it, and a Measure webcam now button while they record.

Clean-up ​

Clean-up (cleanup.*, with retention every 10 minutes) deletes video files only; the thumbnail, captions, transcript, chat excerpt and post text stay. Done: at once. Posted by the app: after posted_after_h. Rejected: after rejected_after_h (1 h; learning uses the tags, notes and transcript, which stay). Held back from the day's shortlist: after held_after_h (24 h). Never approved: after unreviewed_after_h. The source snippet and re-render backup: after source_after_h, except for approved and auto-picked posts (the editor can switch their layout until Done). The editor's copies go with the videos, and a clip whose edit is rendering is left alone. Approved and auto-picked clips keep their videos until Done. A run's daily review set and clips rated on Pilot review keep everything until the run ends plus keep_review_set_days. Webcam measurement frames go after layout.keep_days, except each streamer's newest. clips cleanup --dry-run shows what would go.