Skip to content

Commit d2ce56d

Browse files
authored
updated to match latest web (#283)
1 parent a9f85cf commit d2ce56d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/src/main/java/com/github/topi314/lavasrc/spotify/SpotifyTokenTracker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ public static String generateGetAccessTokenURL() throws IOException {
272272
var hexSecret = toHexString(transformedSecret);
273273
var totp = generateTOTP(hexSecret, 30, 6);
274274
long ts = System.currentTimeMillis();
275-
return "https://open.spotify.com/api/token?reason=init&productType=web-player&totp=" + totp + "&totpVer=5&ts=" + ts;
275+
return "https://open.spotify.com/api/token?reason=init&productType=web-player&totp=" + totp + "&totpVer=7&ts=" + ts;
276276
}
277277

278278
public static byte[] convertArrayToTransformedByteArray(byte[] array) {

0 commit comments

Comments
 (0)