8 Commits
v1.0 ... master

Author SHA1 Message Date
c6173ef29e Version bump to 1.1 2023-03-13 23:37:09 +01:00
Alix von Schirp
522ad91c51 Merge pull request #4 from B00tLoad/1-verbose-duplicates
1 Verbose Duplicates
2023-03-13 23:36:06 +01:00
d38d97c43a Added verbosing which songs are being removed 2023-03-13 23:35:16 +01:00
Alix von Schirp
b29fae7348 Merge pull request #3 from B00tLoad/2-prompt-download-link-on-newer-release
2 prompt download link on newer release
2023-03-13 23:32:56 +01:00
f724c11394 Added download prompt 2023-03-13 23:31:43 +01:00
Alix von Schirp
e75594a563 Update README.md 2023-03-13 19:57:38 +01:00
Alix von Schirp
cc4094d67e Update README.md 2023-03-13 19:57:20 +01:00
Alix von Schirp
40921a5632 Update README.md 2023-03-13 19:57:10 +01:00
4 changed files with 23 additions and 1 deletions

View File

@@ -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]```.

View File

@@ -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>

View File

@@ -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();

View File

@@ -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);