diff --git a/crates/app/src/public/js/me.js b/crates/app/src/public/js/me.js index 9348fe7..eca1e17 100644 --- a/crates/app/src/public/js/me.js +++ b/crates/app/src/public/js/me.js @@ -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;