Skip to content

v1.1.0 - Added User queue and improved performance / errors

Choose a tag to compare

@BytePhilHD BytePhilHD released this 11 Dec 08:51
· 31 commits to master since this release

Added new functionality to show the current user queue. This can be shown by clicking dropdown button. The next 3 songs are then shown in 'Real-Time' (every 3 seconds).

Heavily reduced load on Spotify API by making synchronized get functions which only request every 2 (current Song) and 3 (queue songs) seconds.

Dependency Updates:

  • Upgraded project version from 1.0.8 to 1.1.0 in pom.xml.
  • Added lombok dependency in pom.xml to simplify code with annotations.

Error Handling Improvements:

  • Replaced specific exception handling with a general Exception catch block and improved error logging in AuthenticationURI.java and SpotifyAPIConnector.java. [1] [2]
  • Updated SearchRequest.java to use Console.printError for consistent error logging. [1] [2] [3]

New Features:

  • Introduced SongObject class to represent song details, with lombok annotations for getters, setters, and constructors.
  • Added methods in SpotifyHandler.java to fetch and cache Spotify queue as SongObject instances.

Code Cleanup:

  • Removed unused imports and methods in SpotifyAPIConnector.java and AuthenticationURI.java. [1] [2] [3]
  • Deleted ConsoleCommandHandler.java as it was no longer needed.

Additional Changes:

  • Enhanced Main.java to handle application startup state and integrate the new queue fetching feature. [1] [2] [3]