Skip to content

Commit

Permalink
fix(Netflix): pause and showsmallimages issues
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
iuriineves committed Dec 31, 2024
1 parent 0b1b812 commit d90e6dd
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions websites/N/Netflix/presence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
{
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit d90e6dd

Please sign in to comment.