Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marinoffdev/spotify-script-remove-duplicate-tracks
Spotify API script for removing duplicate tracks from a playlist
https://github.com/marinoffdev/spotify-script-remove-duplicate-tracks
automation ifttt javascript nodejs playlist-manager puppeteer script spotify spotify-api spotify-web-api
Last synced: about 2 hours ago
JSON representation
Spotify API script for removing duplicate tracks from a playlist
- Host: GitHub
- URL: https://github.com/marinoffdev/spotify-script-remove-duplicate-tracks
- Owner: marinoffDev
- License: gpl-3.0
- Created: 2023-04-04T15:42:58.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-04-04T15:51:13.000Z (over 1 year ago)
- Last Synced: 2024-05-21T00:27:02.970Z (6 months ago)
- Topics: automation, ifttt, javascript, nodejs, playlist-manager, puppeteer, script, spotify, spotify-api, spotify-web-api
- Language: JavaScript
- Homepage:
- Size: 40 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Spotify API script for removing duplicate tracks from a playlist
## Description:
TL;DR: This script scans a Spotify playlist and deletes any duplicate tracks.## Context:
You're probably wondering "wait, why is this even needed"?Personally, I use IFTTT applets (https://ifttt.com/) to keep track multiple Spotify playlists at once and "dump" any newly added tracks to my own separate playlist for future discovery/listening. I find this method works great, since the personalized/auto-generated playlists that Spotify provides (e.g. Discover Weekly) often have excellent suggestions, but now there is no rush to listen to everything before it gets wiped.
However, the downside is that often when a song is popular, Spotify adds it to multiple playlists, therefore the "dump" playlist I use gets filled with multiple copies of the same track.
This is why I created this script to help me automate the cleanup process, since over time I ended up having a playlist with ~5k tracks of which (~1.5k were duplicates).## Prerequisites:
You'll need [Node.JS](https://nodejs.org/) installed and also provide your own [Spotify API key](https://developer.spotify.com/documentation/web-api).## License
This repository is licensed under the GPL-3.0 license. See the [LICENSE](LICENSE) file for more information.