Skip to content

Commit

Permalink
chore(Netflix): update version to 6.2.0 & implement season logic (#9154)
Browse files Browse the repository at this point in the history
* chore(Netflix): update version to 6.2.0 & enhance presence state display

* Update websites/N/Netflix/presence.ts

Signed-off-by: Florian Metz <me@timeraa.dev>

---------

Signed-off-by: Florian Metz <me@timeraa.dev>
  • Loading branch information
Timeraa authored Jan 15, 2025
1 parent e7c8a7a commit ed5f058
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()}`,
...(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,
}),
buttons: [
{
Expand Down

0 comments on commit ed5f058

Please sign in to comment.