Ver Fonte

fix: station sometimes locally paused at end of YouTube song

Kristian Vos há 1 ano atrás
pai
commit
997cf50a4b
1 ficheiros alterados com 1 adições e 2 exclusões
  1. 1 2
      frontend/src/pages/Station/index.vue

+ 1 - 2
frontend/src/pages/Station/index.vue

@@ -818,8 +818,7 @@ const youtubeReady = () => {
 						!stationPaused.value &&
 						!noSong.value &&
 						currentSongMediaType.value === "youtube" &&
-						youtubePlayer.value.getDuration() / 1000 <
-							currentSong.value.duration
+						getTimeRemaining() > 0
 					) {
 						youtubePlayer.value.seekTo(
 							getTimeElapsed() / 1000 +