mirror of
https://github.com/entriphy/sp-playcount-librespot.git
synced 2026-04-26 22:26:02 +03:00
[GH-ISSUE #25] Exception in thread "main" xyz.gianlu.librespot.core.Session$SpotifyAuthenticationException: PremiumAccountRequired #22
Labels
No labels
bug
bug
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/sp-playcount-librespot#22
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sthlmsrille on GitHub (May 16, 2023).
Original GitHub issue: https://github.com/entriphy/sp-playcount-librespot/issues/25
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
@zachyf commented on GitHub (May 17, 2023):
I'm also seeing this error! Please keep me posted on what you find.
@longgtruong commented on GitHub (May 17, 2023):
Same error here
@jpgrovy commented on GitHub (May 17, 2023):
Same issue... for the record. My account is a premium account as well.
@jpgrovy commented on GitHub (May 17, 2023):
@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(); }@zachyf commented on GitHub (May 17, 2023):
Yep that worked for me.
@sthlmsrille commented on GitHub (May 18, 2023):
I've never compiled a Java application, could you upload a jar or guide me how to do it? 😁
@Webchantment commented on GitHub (May 18, 2023):
I re-compiled it with the new version number. Works fine now.
sp-playcount-librespot.zip
@marclind commented on GitHub (May 19, 2023):
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".
@Webchantment commented on GitHub (May 19, 2023):
From the command line...
@entriphy commented on GitHub (May 21, 2023):
Fixed in v1.4.2.