Skip to content

NoahFrank/synctube-playlist-queue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Add a Youtube Playlist to queue in a sync-tube room

Prerequisites

  • NodeJS - choco install nodejs
  • Yarn/NPM - choco install yarn
  • Google account
  • Youtube API Key
    1. Log in to Google Developers Console.
    2. Create a new project (use search bar if needed).
    3. Navigate to APIs & Services.
    4. Click "Library" then search for "YouTube Data API v3" under YouTube APIs.
    5. Enable the API after ensuring your new project is selected in the top bar.
    6. Click "Credentials" -> "Create Credentials" -> API Key.
    7. A screen will appear with your new Youtube API key!

Usage Instructions

  1. Clone the repository and navigate to it!
git clone https://github.com/NoahFrank/synctube-playlist-queue.git
cd synctube-playlist-queue
  1. Install dependencies with yarn or npm install
  2. Create an .env file from the .env.sample file, replacing <YOUR_YOUTUBE_API_KEY> with the API Key acquired in the Prerequisites
  3. Run the script with node like so:
node queue-youtube-playlist.mjs <SYNCTUBE_ROOM_OR_URL> queue <YOUTUBE_URL>

Queue Youtube Playlist in Synctube

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 ]

Clear Synctube Playlist

Ensure the Viewer group has 'Remove' permissions in the Synctube room

node queue-youtube-playlist.mjs <SYNCTUBE_ROOM_OR_URL> clear

Move To Top of Synctube Playlist

Ensure the Viewer group has 'Move' permissions in the Synctube room

node queue-youtube-playlist.mjs <SYNCTUBE_ROOM_OR_URL> top

Limitations

  • When queueing videos from the websocket maximum is 50 videos.

Authors

Noah Frank and Colin Thatcher (shoutout to Big Bird for the direct Websocket connection POC)

About

Allows queuing a Youtube Playlist to a sync-tube room

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published