actually fix it now

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

View File

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