Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
c6173ef29e
|
|||
|
|
522ad91c51 | ||
|
d38d97c43a
|
|||
|
|
b29fae7348 | ||
|
f724c11394
|
|||
|
|
e75594a563 | ||
|
|
cc4094d67e | ||
|
|
40921a5632 |
20
README.md
20
README.md
@@ -1 +1,21 @@
|
||||
# SpotifyDedupe
|
||||
This command-line-tool removes all duplicate tracks (also from different releases, matching by Trackname and Artists) from a spotify playlist.
|
||||
|
||||
---
|
||||
|
||||
## Prerequisites
|
||||
- A Spotify application
|
||||
- Java 19 (as this tool is not shipped with a JRE you may need to install a JDK)
|
||||
- Usage on Linux requires having xdg-open installed
|
||||
|
||||
## Setup
|
||||
### Spotify
|
||||
1. Visit [the Spotify Developer Dashboard](https://developer.spotify.com/dashboard/)
|
||||
2. Create an app
|
||||
3. In the "Users and Access" menu, add your Email-Address and Name
|
||||
4. In the "Edit Settings" add "http://localhost:9876/callback/spotify/" as a Redirect URI
|
||||
5. Note your Client ID and Client Secret
|
||||
6.
|
||||
|
||||
## Usage
|
||||
In your command line run ```java -jar bsu-dedupe-%version%.jar [arguments]```.
|
||||
|
||||
2
pom.xml
2
pom.xml
@@ -6,7 +6,7 @@
|
||||
|
||||
<groupId>space.b00tload.spotifyutils</groupId>
|
||||
<artifactId>SpotifyDedupe</artifactId>
|
||||
<version>1.0</version>
|
||||
<version>1.1</version>
|
||||
|
||||
<name>SpotifyDeduper</name>
|
||||
<description>Removes duplicates from spotify playlists.</description>
|
||||
|
||||
@@ -150,6 +150,7 @@ public class SpotifyDedupe {
|
||||
Collections.reverse(duplicateTracks);
|
||||
for(DuplicateTrack dupe : duplicateTracks){
|
||||
pagination++;
|
||||
System.out.println("Removing \"" + getArtistNames(dupe.track().getArtists()) + ": " + dupe.track().getName() + "\" at position " + dupe.location() + ".");
|
||||
JsonObject track = new JsonObject();
|
||||
track.addProperty("uri", dupe.track().getUri());
|
||||
JsonArray loc = new JsonArray();
|
||||
|
||||
@@ -23,6 +23,7 @@ public class VersionChecker {
|
||||
} else if (latestVersion == null) {
|
||||
System.out.println("Error: Failed to retrieve latest release version");
|
||||
} else if (currentVersion.compareTo(latestVersion) < 0) {
|
||||
System.out.println("Download at https://github.com/B00tLoad/SpotifyDedupe/releases/latest");
|
||||
System.out.println("A new version is available: " + latestVersion);
|
||||
} else {
|
||||
System.out.println("You are running the latest version: " + currentVersion);
|
||||
|
||||
Reference in New Issue
Block a user