Skip to content

Commit

Permalink
chore(Netflix): update version to 6.2.0 & enhance presence state display
Browse files Browse the repository at this point in the history
  • Loading branch information
Timeraa committed Jan 12, 2025
1 parent 08abe4d commit b91d425
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion websites/N/Netflix/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"www.netflix.com",
"netflix.com"
],
"version": "6.1.2",
"version": "6.2.0",
"logo": "https://cdn.rcd.gg/PreMiD/websites/N/Netflix/assets/logo.png",
"thumbnail": "https://cdn.rcd.gg/PreMiD/websites/N/Netflix/assets/thumbnail.jpg",
"color": "#db0000",
Expand Down
14 changes: 7 additions & 7 deletions websites/N/Netflix/presence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,12 @@ presence.on("UpdateData", async () => {
logoType
] || LargImages.Logo
: metadata.data.video.boxart.at(0).url,
...(showSmallImages && {
smallImageKey: paused ? Assets.Pause : Assets.Play,
}),
smallImageText: paused ? strings.pause : strings.play,
largeImageText: `Season ${season.seq.toString()}, Episode ${episode.seq.toString()}`,

Check failure on line 144 in websites/N/Netflix/presence.ts

View workflow job for this annotation

GitHub Actions / Compile and Lint

TS 2322

Type 'string' is not assignable to type 'never'.
...(showSmallImages &&
paused && {
smallImageKey: Assets.Pause,
smallImageText: strings.pause,
}),
...(showTimestamp &&
!paused && {
startTimestamp,
Expand All @@ -153,9 +155,7 @@ presence.on("UpdateData", async () => {
...(usePresenceName && {
name: metadata.data.video.title,
details: episode.title,
state: strings.seriesDisplayFull
.replace("{0}", season.seq.toString())
.replace("{1}", episode.seq.toString()),
state: episode.synopsis.slice(0, 128),
}),
buttons: [
{
Expand Down

0 comments on commit b91d425

Please sign in to comment.