Spotify Playlist Duplicate Manager is a Golang application that helps you remove all duplicate songs from a specified Spotify playlist. This project utilizes the Spotify Web API to access and manipulate playlists. It is designed to run as a standalone application or deployed on a server for automated playlist maintenance.
Features
Connects to the Spotify Web API using OAuth2 authentication.
Retrieves the list of songs in a specified playlist.
Identifies and removes duplicate songs, keeping only unique tracks in the playlist.
Supports handling large playlists efficiently through parallelization.
You can run the application with the following flags:
To remove duplicates from a specific playlist, use the -playlistIds flag with a comma-separated list of playlist IDs:
go run main.go -playlistIds "3cEYpjA9oz9GiPac4AsH4n,..."
To remove duplicates from all playlists, use the -all flag:
go run main.go -all
The application will authenticate with the Spotify Web API using the provided credentials and then proceed to remove duplicate songs from the specified playlists.
Note: If you only pass one playlist ID to the -playlistIds flag, the application will treat it as a single ID.