Fix the album art URL being wrong
All checks were successful
Deploy API / deploy (ubuntu-latest, 2.44.0) (push) Successful in 1m5s
All checks were successful
Deploy API / deploy (ubuntu-latest, 2.44.0) (push) Successful in 1m5s
This commit is contained in:
parent
bb4eeb6dba
commit
b25d8e8634
@ -229,8 +229,6 @@ public final class DiscordUser {
|
||||
*/
|
||||
@NonNull @SuppressWarnings("DataFlowIssue")
|
||||
public static SpotifyActivity fromActivity(@NonNull RichPresence richPresence) {
|
||||
// Obtain track URLs
|
||||
String albumArtUrl = "https://i.scdn.co/image/" + richPresence.getLargeImage().getUrl().split(":")[1];
|
||||
String trackUrl = "https://open.spotify.com/track/" + richPresence.getSyncId();
|
||||
|
||||
// Track progress
|
||||
@ -242,7 +240,8 @@ public final class DiscordUser {
|
||||
|
||||
return new SpotifyActivity(
|
||||
richPresence.getSyncId(), richPresence.getDetails(), richPresence.getState().replace(";", ","),
|
||||
richPresence.getLargeImage().getText(), albumArtUrl, trackUrl, trackProgress, trackLength, started, ends
|
||||
richPresence.getLargeImage().getText(), richPresence.getLargeImage().getUrl(), trackUrl,trackProgress,
|
||||
trackLength, started, ends
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user