Closed thedtvn closed 6 months ago
I also encountered this. Did Spotify change the api?
Likely cause: Your classpath is incorrect.
Version.java returns "versionString" as the current version of librespot-java, and if the package does not find a version it will populate ?.?.?
which I'm guessing Spotify recently added validation against. I don't fully understand what is happening here.
To fix it, you should try switching your dependency from librespot-lib
-> librespot-player
. For me this made the version number populate correctly and the library began functioning again. You may also run into issues depending on how your Java build is packaged and ran. To validate that you don't encounter the issue, check Version.versionString()
at runtime to see if it is set correctly.
I can confirm what @Lustyn is saying, they recently added a check on the version string probably to parse it for their own stuff.
I had to fix this in go-librespot too: https://github.com/devgianlu/go-librespot/commit/92ade8e23f0ccabf77594f7d470ed104cc04c306
Describe the bug bug appear when get Track meta
To Reproduce
session.api().getMetadata4Track(TrackId.fromUri("Track id to here"))
Expected behavior work without err
Screenshots/Stracktraces/Logs
Version/Commit xyz.gianlu.librespot:librespot-lib:1.6.3