From d90e6ddcdf743e4aaef200d056f7646d4899f71c Mon Sep 17 00:00:00 2001 From: yuri Date: Tue, 31 Dec 2024 17:22:18 +0000 Subject: [PATCH] fix(Netflix): pause and showsmallimages issues - Fixed issue where pausing would not update the presence status correctly - setting the timestamp to null broke the presence - Resolved problem with small images not displaying properly - setting the image url to "" wouldn't update the image Closes #9031 --- websites/N/Netflix/presence.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/websites/N/Netflix/presence.ts b/websites/N/Netflix/presence.ts index 0744b91b4dfe..d734211dc850 100644 --- a/websites/N/Netflix/presence.ts +++ b/websites/N/Netflix/presence.ts @@ -84,7 +84,7 @@ presence.on("UpdateData", async () => { ? [LargImages.Animated, LargImages.Logo, LargImages.Noback][logoType] || LargImages.Logo : metadata.data.video.boxart.at(0).url, - smallImageKey: showSmallImages ? Assets.Reading : "", + smallImageKey: showSmallImages ? Assets.Reading : null, smallImageText: strings.browse, buttons: [ { @@ -143,11 +143,11 @@ presence.on("UpdateData", async () => { ? paused ? Assets.Pause : Assets.Play - : "", + : null, smallImageText: paused ? strings.pause : strings.play, ...(showTimestamp && { - startTimestamp: paused ? null : startTimestamp, - endTimestamp: paused ? null : endTimestamp, + startTimestamp: paused ? 0 : startTimestamp, + endTimestamp: paused ? 0 : endTimestamp, }), ...(usePresenceName && { name: metadata.data.video.title, @@ -196,11 +196,11 @@ presence.on("UpdateData", async () => { ? paused ? Assets.Pause : Assets.Play - : "", + : null, smallImageText: paused ? strings.pause : strings.play, ...(showTimestamp && { - startTimestamp: paused ? null : startTimestamp, - endTimestamp: paused ? null : endTimestamp, + startTimestamp: paused ? 0 : startTimestamp, + endTimestamp: paused ? 0 : endTimestamp, }), ...(usePresenceName && { name: metadata.data.video.title,