The brief
A video content team publishes episodes to one YouTube channel. Each finished episode from its video editor lands in a shared Google Drive folder with a thumbnail and a Word document holding the title and description. Blaron built the pipeline that takes each episode from there to a scheduled video, leaving one manual step: the channel owner's yes.
From folder to approval
The pipeline scans the synced folder every five minutes by default, or at once from the dashboard:
- Folders sit by topic, then by date; a date folder such as March 6 sets the day, and one such as 3:55 PM March 6 also sets the publish time
- A folder is ready only with a video, a thumbnail and a Word document, whose labeled lines give the title and description, trimmed to 100 and 5,000 characters
- Each new folder becomes a job, and the channel owner gets a Telegram message with its topic, date, title and Yes and No buttons
- Yes starts the upload, No cancels the job, and a handled folder is never offered again
Built on the official API
The pipeline reaches YouTube only through the YouTube Data API v3, with Google OAuth consent from the channel owner and tokens that refresh on their own. Each video goes up as a resumable upload in 16 MB chunks, retrying with backoff on rate limits and server errors, and then gets its thumbnail. A video whose folder name carries a time is uploaded as private with that publish time, so YouTube releases it on the slot. The dashboard connects the channel with one button; a lighter bot-only mode runs the same consent in chat, with /setup sending the sign-in link and /auth taking the code back.
A dashboard for the whole queue
Behind Google sign-in, a web dashboard shows the month's uploads against a monthly cap, the jobs pending and uploading, and a live tracker that moves each video from scanning through found, confirming and uploading, with a progress bar, to done. Other pages list the upload history with links and the upcoming schedule; settings connect the channel and the Telegram bot. Events reach the browser from Redis over a WebSocket, so the page updates without a reload.
Locked to one team
Only the Telegram chat saved in settings can approve or cancel a job; any other chat is refused. Dashboard sessions live in encrypted cookies, the channel connection checks the OAuth state on its way back from Google, a Redis lock keeps scans from overlapping, and the scanner skips any folder that resolves outside its root. The uploader sits behind a platform-neutral interface, with YouTube the one platform wired in.
Ready for Google's review
Uploading and scheduling for a channel needs sensitive YouTube scopes, and Google asks for OAuth verification and a YouTube API audit before such an app leaves testing. Blaron wrote the audit document with the build: why each scope is requested, that the tool serves the channel owner's team only and lets no outside user sign in, how tokens are stored, and what the demo video must show.
