mirror of
https://github.com/qier222/YesPlayMusic.git
synced 2024-11-24 09:22:00 +08:00
feat: use cover image for Discord RPC (#2294)
This commit is contained in:
parent
25e274a4f8
commit
c9739b2d0e
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue
Block a user