π± Automated YouTube video uploads with 12h interval scheduling in JST
β‘ 369 views Β· π± Social Media & Email Marketing
π‘ Pro Tip β YouTubeβs API quotas can be a bottleneck when youβre pulling data at scale. ScraperNode is a community node with dedicated scrapers for channels, videos, and comments β no quota limits, just structured data.
Description
This workflow automates a batch upload of multiple videos to YouTube, spacing each upload 12 hours apart in Japan Standard Time (UTC+9) and automatically adding them to a playlist.
βοΈ Workflow Logic
- Manual Trigger β Starts the workflow manually.
- List Video Files β Uses a shell command to find all
.mp4files under the specified directory (/opt/downloads/εθ―ε‘/A1-A2). - Sort and Generate Items β Sorts videos by day number (
dayXX) extracted from filenames and assigns a sequentialordervalue. - Calculate Publish Schedule (+12h Interval) β
- Computes the next rounded JST hour plus a configurable buffer (default 30 min).
- Staggers each videoβs scheduled time by
order Γ 12 hours. - Converts JST back to UTC for YouTubeβs
publishAtfield.
- Split in Batches (1 per video) β Iterates over each video item.
- Read Video File β Loads the corresponding video from disk.
- Upload to YouTube (Scheduled) β Uploads the video privately with the computed
publishAtUtc. - Add to Playlist β Adds the newly uploaded video to the target playlist.
π Highlights
- Timezone-safe: Pure UTC β JST conversion avoids double-offset errors.
- Sequential scheduling: Ensures each upload is 12 hours apart to prevent clustering.
- Customizable: Change
SPAN_HOURS,BUFFER_MIN, or directory paths easily. - Retry-ready: Each upload and playlist step has retry logic to handle transient errors.
π‘ Typical Use Cases
- Multi-part educational video series (e.g., A1βA2 English learning).
- Regular content release cadence without manual scheduling.
- Automated YouTube publishing pipelines for pre-produced content.
Author: Zane
Category: Automation / YouTube / Scheduler
Timezone: JST (UTC+09:00)
π Nodes Used
YouTube, Read/Write Files from Disk
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File