From c9739b2d0e6b2fdd5c7684e4c47c7d178553eccc Mon Sep 17 00:00:00 2001 From: Frz Date: Fri, 1 Nov 2024 14:20:30 +0800 Subject: [PATCH] feat: use cover image for Discord RPC (#2294) --- src/electron/ipcMain.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/electron/ipcMain.js b/src/electron/ipcMain.js index 4310342..aa0e3d7 100644 --- a/src/electron/ipcMain.js +++ b/src/electron/ipcMain.js @@ -240,7 +240,7 @@ export function initIpcMain(win, store, trayEventEmitter) { details: track.name + ' - ' + track.ar.map(ar => ar.name).join(','), state: track.al.name, endTimestamp: Date.now() + track.dt, - largeImageKey: 'logo', + largeImageKey: track.al.picUrl, largeImageText: 'Listening ' + track.name, smallImageKey: 'play', smallImageText: 'Playing', @@ -252,7 +252,7 @@ export function initIpcMain(win, store, trayEventEmitter) { client.updatePresence({ details: track.name + ' - ' + track.ar.map(ar => ar.name).join(','), state: track.al.name, - largeImageKey: 'logo', + largeImageKey: track.al.picUrl, largeImageText: 'YesPlayMusic', smallImageKey: 'pause', smallImageText: 'Pause',