Skip to content

Commit

Permalink
chore(U-NEXT): update assets (#9130)
Browse files Browse the repository at this point in the history
  • Loading branch information
SeMiD authored Jan 9, 2025
1 parent 59b53c3 commit 209e6ac
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
6 changes: 3 additions & 3 deletions websites/U/U-NEXT/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
"video.unext.jp",
"unext.jp"
],
"version": "1.0.0",
"logo": "https://i.imgur.com/tuSR9Ef.png",
"thumbnail": "https://i.imgur.com/UX5e7Vk.png",
"version": "1.0.1",
"logo": "https://cdn.rcd.gg/PreMiD/websites/U/U-NEXT/assets/logo.png",
"thumbnail": "https://cdn.rcd.gg/PreMiD/websites/U/U-NEXT/assets/thumbnail.png",
"color": "#000000",
"category": "videos",
"tags": [
Expand Down
22 changes: 13 additions & 9 deletions websites/U/U-NEXT/presence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ presence.on("UpdateData", async () => {
details: metadata.data.webfrontTitleStage.titleName,
state: metadata.data.webfrontTitleStage.attractions.slice(0, 128),
largeImageKey: !showCover
? "https://i.imgur.com/tuSR9Ef.png"
? "https://cdn.rcd.gg/PreMiD/websites/U/U-NEXT/assets/logo.png"
: `https://${metadata.data.webfrontTitleStage.thumbnail.standard}`,
...(showSmallImages && {
smallImageKey: Assets.Reading,
Expand Down Expand Up @@ -119,7 +119,8 @@ presence.on("UpdateData", async () => {
return await presence.setActivity({
type: ActivityType.Watching,
details: strings.watchingSeries,
largeImageKey: "https://i.imgur.com/tuSR9Ef.png",
largeImageKey:
"https://cdn.rcd.gg/PreMiD/websites/U/U-NEXT/assets/logo.png",
});
}

Expand All @@ -134,7 +135,7 @@ presence.on("UpdateData", async () => {
.replace("{0}", episode.displayNo)
.replace("{1}", episode.episodeName),
largeImageKey: !showCover
? "https://i.imgur.com/tuSR9Ef.png"
? "https://cdn.rcd.gg/PreMiD/websites/U/U-NEXT/assets/logo.png"
: `https://${metadata.data.webfrontTitleStage.thumbnail.standard}`,
...(showSmallImages && {
smallImageKey: paused ? Assets.Pause : Assets.Play,
Expand Down Expand Up @@ -172,7 +173,8 @@ presence.on("UpdateData", async () => {
return await presence.setActivity({
type: ActivityType.Watching,
details: strings.watchingMovie,
largeImageKey: "https://i.imgur.com/tuSR9Ef.png",
largeImageKey:
"https://cdn.rcd.gg/PreMiD/websites/U/U-NEXT/assets/logo.png",
});
}

Expand All @@ -188,7 +190,7 @@ presence.on("UpdateData", async () => {
).toString()
),
largeImageKey: !showCover
? "https://i.imgur.com/tuSR9Ef.png"
? "https://cdn.rcd.gg/PreMiD/websites/U/U-NEXT/assets/logo.png"
: `https://${metadata.data.webfrontTitleStage.thumbnail.standard}`,
...(showSmallImages && {
smallImageKey: paused ? Assets.Pause : Assets.Play,
Expand Down Expand Up @@ -233,7 +235,7 @@ presence.on("UpdateData", async () => {
details: liveMetadata.data.webfrontGetLive.name,
state: liveMetadata.data.webfrontGetLive.attractions.slice(0, 128),
largeImageKey: !showCover
? "https://i.imgur.com/tuSR9Ef.png"
? "https://cdn.rcd.gg/PreMiD/websites/U/U-NEXT/assets/logo.png"
: `https://${liveMetadata.data.webfrontGetLive.notices[0].thumbnail.standard}`,
...(showSmallImages && {
smallImageKey: Assets.Reading,
Expand Down Expand Up @@ -263,7 +265,8 @@ presence.on("UpdateData", async () => {
return await presence.setActivity({
type: ActivityType.Watching,
details: strings.watchingLive,
largeImageKey: "https://i.imgur.com/tuSR9Ef.png",
largeImageKey:
"https://cdn.rcd.gg/PreMiD/websites/U/U-NEXT/assets/logo.png",
});
}

Expand Down Expand Up @@ -291,7 +294,7 @@ presence.on("UpdateData", async () => {
).toString()
),
largeImageKey: !showCover
? "https://i.imgur.com/tuSR9Ef.png"
? "https://cdn.rcd.gg/PreMiD/websites/U/U-NEXT/assets/logo.png"
: `https://${liveMetadata.data.webfrontGetLive.notices[0].thumbnail.standard}`,
...(showSmallImages && {
smallImageKey: paused ? Assets.Pause : Assets.Play,
Expand Down Expand Up @@ -320,7 +323,8 @@ presence.on("UpdateData", async () => {
if (showBrowsingStatus && !privacyMode) {
return await presence.setActivity({
details: strings.browse,
largeImageKey: "https://i.imgur.com/tuSR9Ef.png",
largeImageKey:
"https://cdn.rcd.gg/PreMiD/websites/U/U-NEXT/assets/logo.png",
smallImageKey: Assets.Reading,
smallImageText: strings.browse,
});
Expand Down

0 comments on commit 209e6ac

Please sign in to comment.