From cf00992d71116119b4b0800fb51bf8634e1728a5 Mon Sep 17 00:00:00 2001 From: jeffvli Date: Wed, 29 Mar 2023 18:17:56 -0700 Subject: [PATCH] Fix song repeating when disabled (#55) --- src/main/features/core/player/index.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/main/features/core/player/index.ts b/src/main/features/core/player/index.ts index 360d5099..aabcaee7 100644 --- a/src/main/features/core/player/index.ts +++ b/src/main/features/core/player/index.ts @@ -13,7 +13,6 @@ function wait(timeout: number) { } ipcMain.on('player-start', async () => { - await mpv.load('./dummy.mp3', 'replace'); await mpv.play(); }); @@ -72,7 +71,6 @@ ipcMain.on('player-set-queue', async (_event, data: PlayerData) => { await mpv.load(data.queue.next.streamUrl, 'append'); } - await mpv.play(); complete = true; } catch (err) { console.error(err);