Closed sthlmsrille closed 1 year ago
I'm also seeing this error! Please keep me posted on what you find.
Same error here
Same issue... for the record. My account is a premium account as well.
@sthlmsrille @zachyf @longgtruong
I saw this post saying to just change the version number.
The fix is to provide a newer client version at https://github.com/librespot-org/librespot-java/blob/0a8e685/lib/src/main/java/xyz/gianlu/librespot/Version.java#L72. Specifying 117300517 from https://github.com/librespot-org/librespot/blob/ae8387a/core/src/version.rs#L20 makes the login work again.
Can someone try using this version number "117300517" instead and see if it works? It will take me a few days to get access to my computer with this on it :(
It looks like the Version.java file needs to be updated
Current code and version looks like this
public static BuildInfo standardBuildInfo() { return BuildInfo.newBuilder() .setProduct(Product.PRODUCT_CLIENT) .addProductFlags(ProductFlags.PRODUCT_FLAG_NONE) .setPlatform(Version.platform()) .setVersion(112800721) .build(); }
Yep that worked for me.
I've never compiled a Java application, could you upload a jar or guide me how to do it? 😁
I re-compiled it with the new version number. Works fine now. sp-playcount-librespot.zip
That's awesome! I also have no experience in java... How do you pass username and password to the re-complied one? Doesnt seem to work running the file together with "USER=username PASSWORD=password".
From the command line...
1) Run the JAR: java -jar librespot-core-jar-with-dependencies.jar username password
You only need to provide your Spotify username and password once. After creds.json has been generated, the username and password are not required in the launch arguments.
2) Run the JAR again: java -jar librespot-core-jar-with-dependencies.jar
Describe the bug When starting the application error "PremiumAccountRequired" occurs
To Reproduce Start the application
Expected behavior To be able to login
Screenshots/Stracktraces/Logs Screenshots if applicable, stacktrace and log is a crash occurred.
Version/Commit 1.4.1
Issue seem related to this in LibreSpot: https://github.com/librespot-org/librespot-java/issues/614