From d69080b695502cc956fd8e6c7bcb6b4eb7c15a61 Mon Sep 17 00:00:00 2001 From: Vidocq Date: Wed, 17 Mar 2021 23:15:10 +0800 Subject: [PATCH] fix: source and add track name in discord large image text (#437) --- package.json | 1 - src/electron/ipcMain.js | 2 +- yarn.lock | 6 +++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 8e24d7f..5cbbebb 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,6 @@ "crypto-js": "^4.0.0", "dayjs": "^1.8.36", "discord-rich-presence": "^0.0.8", - "discord-rpc": "^3.2.0", "electron": "^12.0.0", "electron-builder": "^22.10.5", "electron-context-menu": "^2.3.0", diff --git a/src/electron/ipcMain.js b/src/electron/ipcMain.js index c86d091..7a3b52b 100644 --- a/src/electron/ipcMain.js +++ b/src/electron/ipcMain.js @@ -69,7 +69,7 @@ export function initIpcMain(win, store) { state: track.al.name, endTimestamp: Date.now() + track.dt, largeImageKey: "logo", - largeImageText: "YesPlayMusic", + largeImageText: "Listening " + track.name, smallImageKey: "play", smallImageText: "Playing", instance: true, diff --git a/yarn.lock b/yarn.lock index 36b3dca..273b851 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4300,12 +4300,12 @@ dir-glob@^3.0.1: discord-rich-presence@^0.0.8: version "0.0.8" - resolved "https://registry.npm.taobao.org/discord-rich-presence/download/discord-rich-presence-0.0.8.tgz#7a2b41ff87a278e8a2c8835cd91c9890d6b9fbdd" - integrity sha1-eitB/4eieOiiyINc2RyYkNa5+90= + resolved "https://registry.yarnpkg.com/discord-rich-presence/-/discord-rich-presence-0.0.8.tgz#7a2b41ff87a278e8a2c8835cd91c9890d6b9fbdd" + integrity sha512-IpVMPjv15C9UvppxvrrGdv6bzQHOW1P1vLoMH15HvdJwGJ3dBd2bnrJ63Uy36YRUfrAMxGLiwUDHncvC8AuPaQ== dependencies: discord-rpc "github:discordjs/rpc" -discord-rpc@^3.2.0, "discord-rpc@github:discordjs/rpc": +"discord-rpc@github:discordjs/rpc": version "3.2.0" resolved "https://codeload.github.com/discordjs/rpc/tar.gz/32f1b9f8c47cf82ab87a83391ca9a9115513f01e" dependencies: