I wanted to create an app that reconstructs youtube playlists exclusively with lyric versions. I needed this because when importing songs from Spotify, existing tools in the market, like Spotify Downloader, often fetch the 'Official version' which includes additional audio elements or annotations beyond the song itself.
Rename .env.example to .env and replace the placeholder values with your own. Next, install and execute with the following commands:
npm install
npm run start
- Navigate to the "APIs & Services" > "Credentials" section.
- Click on "Create Credentials" and choose "OAuth client ID."
- Fill the form and select all the roles for the Youtube Data API
- Add your user account to the test users.
- Get back to the "Credentials" screen, select "Create Credentials" and choose "OAuth client ID."
- Select Desktop application type.
- Put your oAuth client id and secret on the .env file
- The application will start by asking you to log in with your Google account using 2FA.
- It will then prompt you for the title of the playlist you want to convert to lyrics. If the environment variable ONLY_PRIVATE_PLAYLISTS is set to true, it will only search for your playlists.
- You will be asked from which position you want to start converting the songs. This feature exists so that if an error occurs, you don't need to start from the beginning again.
- After providing the necessary inputs, your playlist should be available on YouTube.