diff --git a/websites/S/SoundCloud/metadata.json b/websites/S/SoundCloud/metadata.json index 9b3c6ace75b4..39878f4b6248 100644 --- a/websites/S/SoundCloud/metadata.json +++ b/websites/S/SoundCloud/metadata.json @@ -27,7 +27,7 @@ "vi_VN": "SoundCloud là nền tảng phát nhạc và podcast trực tuyến nơi bạn có thể nghe hàng triệu bài hát từ khắp thế giới, hoặc tự đăng tải tác phẩm của riêng mình." }, "url": "soundcloud.com", - "version": "2.5.2", + "version": "2.5.3", "logo": "https://cdn.rcd.gg/PreMiD/websites/S/SoundCloud/assets/logo.png", "thumbnail": "https://cdn.rcd.gg/PreMiD/websites/S/SoundCloud/assets/thumbnail.jpg", "color": "#FF7E30", diff --git a/websites/S/SoundCloud/presence.ts b/websites/S/SoundCloud/presence.ts index 1beac450e76c..303adff86d58 100644 --- a/websites/S/SoundCloud/presence.ts +++ b/websites/S/SoundCloud/presence.ts @@ -4,7 +4,6 @@ const presence = new Presence({ getStrings = async () => { return presence.getStrings( { - play: "general.playing", pause: "general.paused", browse: "general.browsing", search: "general.searchSomething", @@ -191,8 +190,13 @@ presence.on("UpdateData", async () => { ) ?.getAttribute("href"); - [presenceData.startTimestamp, presenceData.endTimestamp] = - presence.getTimestamps(currentTime, duration); + if (playing) { + [presenceData.startTimestamp, presenceData.endTimestamp] = + presence.getTimestamps(currentTime, duration); + } else { + presenceData.smallImageKey = Assets.Pause; + presenceData.smallImageText = strings.pause; + } if (showCover) { presenceData.largeImageKey = @@ -203,8 +207,6 @@ presence.on("UpdateData", async () => { .style.backgroundImage.match(/"(.*)"/)?.[1] .replace("-t50x50.jpg", "-t500x500.jpg") ?? "soundcloud"; } - presenceData.smallImageKey = playing ? Assets.Play : Assets.Pause; - presenceData.smallImageText = strings[playing ? "play" : "pause"]; if (showButtons && pathLinkSong) { presenceData.buttons = [