actually fix it now

This commit is contained in:
2024-10-19 15:12:53 +02:00
parent 4ef98f80cf
commit b8faeef189

View File

@@ -434,6 +434,7 @@
if ( pos.value > 0 && !hasStarted ) { if ( pos.value > 0 && !hasStarted ) {
if ( player.getPlaying() ) { if ( player.getPlaying() ) {
setTimeout( () => {
getDetails(); getDetails();
playingSong = player.getPlayingSong(); playingSong = player.getPlayingSong();
pos.value = player.getPlaybackPos(); pos.value = player.getPlaybackPos();
@@ -442,6 +443,7 @@
notificationHandler.emit( 'playback-update', isPlaying.value ); notificationHandler.emit( 'playback-update', isPlaying.value );
notificationHandler.emit( 'playback-start-update', new Date().getTime() - pos.value * 1000 ); notificationHandler.emit( 'playback-start-update', new Date().getTime() - pos.value * 1000 );
hasStarted = true; hasStarted = true;
}, 2000 );
} }
} }