From 13b6a168042aaf310accda2ba10c029732580876 Mon Sep 17 00:00:00 2001 From: Natsumi Date: Mon, 13 Sep 2021 12:38:54 +1200 Subject: [PATCH] PyPyDance Discord RPC 2 --- html/src/app.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/html/src/app.js b/html/src/app.js index 7ba6895b..9d90e346 100644 --- a/html/src/app.js +++ b/html/src/app.js @@ -7441,7 +7441,7 @@ speechSynthesis.getVoices(); var videoName = ''; var videoLength = ''; var displayName = ''; - var videoPos = 5; // video loading delay + var videoPos = 10; // video loading delay if (typeof gameLog.displayName !== 'undefined') { displayName = gameLog.displayName; } @@ -7796,11 +7796,13 @@ speechSynthesis.getVoices(); appId = '846232616054030376'; bigIcon = 'vr_dancing'; } - L.worldName = this.nowPlaying.name; - Discord.SetTimestamps( - Date.now(), - (this.nowPlaying.startTime + this.nowPlaying.length) * 1000 - ); + if (this.nowPlaying.playing) { + L.worldName = this.nowPlaying.name; + Discord.SetTimestamps( + Date.now(), + (this.nowPlaying.startTime + this.nowPlaying.length) * 1000 + ); + } } Discord.SetAssets( bigIcon, // big icon