diff --git a/websites/J/jut.su/metadata.json b/websites/J/jut.su/metadata.json index 1f5f075c6b1d..82170a3b47d4 100644 --- a/websites/J/jut.su/metadata.json +++ b/websites/J/jut.su/metadata.json @@ -22,7 +22,7 @@ "nl": "Jut.su is een Russische anime-website" }, "url": "jut.su", - "version": "3.0.9", + "version": "3.0.11", "logo": "https://cdn.rcd.gg/PreMiD/websites/J/jut.su/assets/logo.png", "thumbnail": "https://cdn.rcd.gg/PreMiD/websites/J/jut.su/assets/thumbnail.png", "color": "#c9e58b", diff --git a/websites/J/jut.su/presence.ts b/websites/J/jut.su/presence.ts index d38ccbf28be1..d97c9c161c4f 100644 --- a/websites/J/jut.su/presence.ts +++ b/websites/J/jut.su/presence.ts @@ -8,6 +8,7 @@ presence.on("UpdateData", async () => { largeImageKey: "https://cdn.rcd.gg/PreMiD/websites/J/jut.su/assets/logo.png", startTimestamp: browsingTimestamp, + type: ActivityType.Watching, }, { pathname } = document.location, title = @@ -77,10 +78,22 @@ presence.on("UpdateData", async () => { .replace(/смотреть\s/i, "") .replace(/([0-9]* сезон)?\s?[0-9]* серия|[0-9] фильм/g, "") .trim(); - presenceData.details = `Смотрит аниме «${titles}»`; + presenceData.details = titles; presenceData.state = name.textContent .replace(/смотреть\s/i, "") .replace(titles, ""); + + const coverArtElement = document.querySelector( + ".all_anime_title.aat_ep" + ); + if (coverArtElement) { + const coverArt = coverArtElement.style.backgroundImage; + if (coverArt) { + presenceData.largeImageKey = coverArt + .replace('url("', "") + .replace('")', ""); + } + } break; } case !!title: