update the total song length from the socket messages

This commit is contained in:
Kristy Fournier 2026-03-08 13:27:17 -04:00
parent f95ecc78d4
commit 0099f17d34
2 changed files with 3 additions and 2 deletions

View file

@ -102,7 +102,7 @@ def playQueuedSongs():
counter+=1
if(counter > 2):
playingState = str(player.get_state()) == "State.Playing"
socketio.emit('timeUpdate',{"elapsedTime":player.get_time()/1000,"playingState":playingState})
socketio.emit('timeUpdate',{"elapsedTime":player.get_time()/1000,"playingState":playingState,"songLength":player.get_length()/1000})
counter = 0
playerState = str(player.get_state())
endStates = ["State.Ended","State.Stopped","State.NothingSpecial"]