rework songInfo pause listener

This commit is contained in:
Araxeus
2021-11-14 23:43:04 +02:00
parent cfe719b6bd
commit 6726e2600b
3 changed files with 52 additions and 56 deletions

View File

@ -13,7 +13,7 @@ module.exports = (win, options) => {
...options,
};
ipcMain.on("song-info-request", async (_, data) => {
ipcMain.on("video-src-changed", async (_, data) => {
videoID = JSON.parse(data)?.videoDetails?.videoId;
const segments = await fetchSegments(apiURL, categories);
win.webContents.send("sponsorblock-skip", segments);