fix: refine spotify scopes
This commit is contained in:
parent
33ba576d4a
commit
3e2bdceb99
1 changed files with 6 additions and 2 deletions
|
@ -415,7 +415,7 @@
|
|||
);
|
||||
params.append(
|
||||
"scope",
|
||||
"user-read-recently-played user-modify-playback-state user-read-playback-state user-read-email",
|
||||
"user-read-recently-played user-read-playback-state user-read-currently-playing",
|
||||
);
|
||||
params.append("code_challenge_method", "S256");
|
||||
params.append("code_challenge", challenge);
|
||||
|
@ -550,7 +550,11 @@
|
|||
({ $ }, updated_, progress_ms_, duration_ms_, display = "full") => {
|
||||
const now = new Date().getTime();
|
||||
const updated = Number.parseInt(updated_) + 8000;
|
||||
const elapsed_since_update = now - updated;
|
||||
|
||||
let elapsed_since_update = now - updated;
|
||||
if (elapsed_since_update < 0) {
|
||||
elapsed_since_update = 0;
|
||||
}
|
||||
|
||||
const progress_ms =
|
||||
Number.parseInt(progress_ms_) + elapsed_since_update;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue