Add a Youtube Playlist to queue in a sync-tube room
- NodeJS -
choco install nodejs
- Yarn/NPM -
choco install yarn
- Google account
- Youtube API Key
- Log in to Google Developers Console.
- Create a new project (use search bar if needed).
- Navigate to APIs & Services.
- Click "Library" then search for "YouTube Data API v3" under YouTube APIs.
- Enable the API after ensuring your new project is selected in the top bar.
- Click "Credentials" -> "Create Credentials" -> API Key.
- A screen will appear with your new Youtube API key!
- Clone the repository and navigate to it!
git clone https://github.com/NoahFrank/synctube-playlist-queue.git
cd synctube-playlist-queue
- Install dependencies with
yarn
ornpm install
- Create an
.env
file from the.env.sample
file, replacing <YOUR_YOUTUBE_API_KEY> with the API Key acquired in the Prerequisites - Run the script with
node
like so:
node queue-youtube-playlist.mjs <SYNCTUBE_ROOM_OR_URL> queue <YOUTUBE_URL>
Add the entire Youtube playlist into Synctube playlist, include --random
if you want to randomize the queueing order. Supports adding a single Youtube video to Synctube playlist.
node queue-youtube-playlist.mjs <SYNCTUBE_ROOM_OR_URL> queue <YOUTUBE_URL> [ --random ]
Ensure the Viewer group has 'Remove' permissions in the Synctube room
node queue-youtube-playlist.mjs <SYNCTUBE_ROOM_OR_URL> clear
Ensure the Viewer group has 'Move' permissions in the Synctube room
node queue-youtube-playlist.mjs <SYNCTUBE_ROOM_OR_URL> top
- When queueing videos from the websocket maximum is 50 videos.
Noah Frank and Colin Thatcher (shoutout to Big Bird for the direct Websocket connection POC)