Fix song repeating when disabled (#55)

This commit is contained in:
jeffvli 2023-03-29 18:17:56 -07:00
parent 3848e9840d
commit cf00992d71

View file

@ -13,7 +13,6 @@ function wait(timeout: number) {
} }
ipcMain.on('player-start', async () => { ipcMain.on('player-start', async () => {
await mpv.load('./dummy.mp3', 'replace');
await mpv.play(); 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.load(data.queue.next.streamUrl, 'append');
} }
await mpv.play();
complete = true; complete = true;
} catch (err) { } catch (err) {
console.error(err); console.error(err);