From 0681844dab2f7519880545d684c3c07f0f617870 Mon Sep 17 00:00:00 2001 From: Morril Date: Wed, 18 Jan 2023 04:01:12 +0100 Subject: [PATCH] fixed break --- .../tools/lastfmtospotifyplaylist/LastFMToSpotify.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/b00tload/tools/lastfmtospotifyplaylist/LastFMToSpotify.java b/src/main/java/de/b00tload/tools/lastfmtospotifyplaylist/LastFMToSpotify.java index b2186b0..459ea3a 100644 --- a/src/main/java/de/b00tload/tools/lastfmtospotifyplaylist/LastFMToSpotify.java +++ b/src/main/java/de/b00tload/tools/lastfmtospotifyplaylist/LastFMToSpotify.java @@ -6,7 +6,6 @@ import de.b00tload.tools.lastfmtospotifyplaylist.arguments.Arguments; import de.umass.lastfm.Caller; import de.umass.lastfm.Period; import de.umass.lastfm.User; -import me.tongfei.progressbar.ProgressBar; import org.apache.hc.core5.http.ParseException; import se.michaelthelin.spotify.SpotifyApi; import se.michaelthelin.spotify.exceptions.SpotifyWebApiException; @@ -23,8 +22,10 @@ public class LastFMToSpotify { public static HashMap configuration; public static void main(String[] args) { + // create hash map with user agent configuration = new HashMap<>(); configuration.put("requests.useragent", "LastFMToSpotify/1.0-Snapshot (" + System.getProperty("os.name") + "; " + System.getProperty("os.arch") + ") Java/"+System.getProperty("java.version")); + // parse arguments for(int a = 0; a