Skip to content

Take a Discogs artist and extract every YouTube video from all their releases, add every video to a YouTube playlist.

Notifications You must be signed in to change notification settings

MartinBarker/Discogs2Playlist

Repository files navigation

Discogs Artist Credits Release Videos to Playlist

  • Take a discogs artist ID as input (ex: '316989'), fetch all youtube videos on all discogs releases, and add them to a youtube playlist

Roadmap

  • This repo can be run locally by following the below instructions, I am working on a web interface version coming soon!

Instructions to run locally:

  1. Set Up Google Cloud Project (GCP)
GCP_CLIENT_ID=
GCP_CLIENT_SECRET=
PLAYLIST_ID=
  1. Run the following commands to clone and setup this repo
  • git clone https://github.com/MartinBarker/Discogs2Playlist.git
  • npm i
  1. Fetch all IDs
  • Edit discogsArtistYouTubeToJson.js to set the discogs artist id: const artistId = '83376'; // Example artist ID
  • You can get a discogs artist id from a url like so:
https://www.discogs.com/artist/656-A-Guy-Called-Gerald
Artist id would be "656"
  • Run node discogsArtistYouTubeToJson.js
  • This will create a .json file with every youtube id, such as "JammingGerald_44589_youtube_links.json"
  1. Create a YouTube playlist
  • Create a playlist, and get the playlist id from the url like so:
https://www.youtube.com/playlist?list=PLpQuORMLvnZaEwq6CofOmow8SPCM2LMRM
playlist id is everything after "list=" like so: PLpQuORMLvnZaEwq6CofOmow8SPCM2LMRM
  • Set the playlist id in the .env file like so:
GCP_CLIENT_ID=abc123
GCP_CLIENT_SECRET=abc123
PLAYLIST_ID=PLpQuORMLvnZaEwq6CofOmow8SPCM2LMRM
  1. Add all youtube videos from the .json file to the yutube playlist:
  • Run the script: node addJsonToYoutube.js

About

Take a Discogs artist and extract every YouTube video from all their releases, add every video to a YouTube playlist.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published