Commit graph

2 commits

Author SHA1 Message Date
victorcavero14
b7b5e95e7c fix(autopilot): send the YouTube consent cookie when checking for Shorts
From the EU prod servers every /shorts/<id> HEAD is first a 302 to
consent.youtube.com, which read as 'not a Short' and let a 53 s Short
through to the pipeline. With SOCS/CONSENT set, a Short answers 200 and a
regular video 303 to /watch (checked from the prod container).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-22 22:06:18 +02:00
victorcavero14
8f57560fa5 feat(autopilot): clip every new video on the connected YouTube channel
Most subscribers use OpenShorts on one day and cancel. Autopilot makes the
value recur: once switched on, every new upload on the user's YouTube channel
(listed through the existing Upload-Post connection, no scraping) is sent
through the normal /api/process pipeline, the user gets an email when the
clips are ready, and with autopublish on the best clips are scheduled on
their socials, one a day.

- cloud/autopilot.py: poller, in-process job submission as the user,
  completion hook, autopublish, and /api/autopilot{,/videos,/run}
- guard rails: only videos published after switching on, max 3 days old,
  1 automatic job per user per day, first N minutes per video, Shorts skipped,
  paid plans only, dedupe by (user, video) across the deploy handover
- dashboard: new Autopilot tab (sidebar + mobile menu, #app?tab=autopilot)
- connect page can return to the Autopilot tab
- analytics: ClipsDelivered/JobFailed now report source=url and the plan

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-22 21:36:19 +02:00