added songwhip

This commit is contained in:
2023-07-23 23:11:04 +02:00
parent 6969de8270
commit 41ca1d5a43
11 changed files with 129 additions and 3 deletions

View File

@@ -26,6 +26,7 @@ import {
import { settings } from "./constants/settings";
import { addTray, refreshTray } from "./scripts/tray";
import { MediaInfo } from "./models/mediaInfo";
import { Songwhip } from "./features/songwhip/songwhip";
import { Logger } from "./features/logger";
const tidalUrl = "https://listen.tidal.com";
@@ -222,4 +223,8 @@ ipcMain.on(globalEvents.error, (event) => {
console.log(event);
});
ipcMain.handle(globalEvents.whip, async (event, url) => {
return await Songwhip.whip(url);
});
Logger.watch(ipcMain);