mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-10 04:30:25 +02:00
Fix song repeating when disabled (#55)
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user