This is a lightweight command line tool for one-way transfer of Spotify playlists to Youtube Music playlists, written in C# .NET, using below libraries:
- List Spotify playlists of the user
- List YouTube playlists of the user
- List all the tracks in a Spotify playlist of the user
- List all the tracks in a Youtube playlist of the user
- Transfer all tracks in a Spotify playlist into another Youtube playlist
- .NET 7.0 Runtime
- Edit the example
authSecrets.jsonfile and see the required inputs
- Go to Developer Dashboard of Spotify and add an application for Web API access. Make sure the
SpotifyRedirectUriinauthSecrets.jsonis the same for your applications Redirect URI in the Spotify's Dashboard. - Enter your Client ID and Client Secret to the
SpotifyClientIdandSpotifyClientSecretfields, inauthSecrets.json.
- Go to Google Cloud Console and enable YouTube API
- Register your app from Enabled APIs & services >> Credentials >> + CREATE CREDENTIALS >> OAuth client ID >> Desktop app
- Download OAuth client definition file in JSON format, by clicking Download OAuth client button in Credentials page
- Move/copy the downloaded OAuth client JSON file to the same folder of the executable. Enter the path of this file in the
YtClientSecretsPathfield inauthSecrets.json. - Move/copy the downloaded OAuth client JSON file to the folder of the executable. Put path of this file into
YtClientSecretsPathfield, inauthSecrets.json. - Enter your registered application name into
YtAppNamefield, inauthSecrets.json. - Enter your YouTube username into
YtUsernamefield, inauthSecrets.json. Please note that there can be more than one user associated with the same e-mail address. Choose the related one.
Sp2Yt <command>
-list-spotify-playlists
-list-youtube-playlists
-list-spotify-tracks <Spotify playlist name>
-list-youtube-tracks <Youtube playlist name>
-transfer-to-youtube <Spotify playlist name> <Youtube playlist name>