diff options
author | V <vendicated@riseup.net> | 2023-05-18 05:11:06 +0200 |
---|---|---|
committer | V <vendicated@riseup.net> | 2023-05-18 05:11:06 +0200 |
commit | 89a6c575c9cfe6a6fa72def404220817e008cfea (patch) | |
tree | 6711c39e248a4f2a952646c00331f05341585902 | |
parent | 60325c6aa5805630dd7f70fcf2da5d95b9e67dcb (diff) | |
download | Vencord-89a6c575c9cfe6a6fa72def404220817e008cfea.tar.gz Vencord-89a6c575c9cfe6a6fa72def404220817e008cfea.tar.bz2 Vencord-89a6c575c9cfe6a6fa72def404220817e008cfea.zip |
lastfm: Fix discord application
-rw-r--r-- | src/plugins/lastfm.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/lastfm.tsx b/src/plugins/lastfm.tsx index 380d1ea..19620e0 100644 --- a/src/plugins/lastfm.tsx +++ b/src/plugins/lastfm.tsx @@ -72,7 +72,7 @@ enum ActivityFlag { INSTANCE = 1 << 0, } -const applicationId = "1043533871037284423"; +const applicationId = "1108588077900898414"; const placeholderId = "2a96cbd8b46e442fc41c2b86b821562f"; const logger = new Logger("LastFMRichPresence"); @@ -167,6 +167,7 @@ export default definePlugin({ settings, start() { + this.updatePresence(); this.updateInterval = setInterval(() => { this.updatePresence(); }, 16000); }, @@ -198,7 +199,7 @@ export default definePlugin({ const trackData = json.recenttracks?.track[0]; - if (!trackData || !trackData["@attr"]?.nowplaying) + if (!trackData?.["@attr"]?.nowplaying) return null; // why does the json api have xml structure |