diff --git a/websites/G/Genius/metadata.json b/websites/G/Genius/metadata.json index f4747733bb97..94cf7836c8bf 100644 --- a/websites/G/Genius/metadata.json +++ b/websites/G/Genius/metadata.json @@ -11,7 +11,7 @@ "vi_VN": "Genius là bộ sưu tập lời bài hát và kiến thức âm nhạc lớn nhất thế giới." }, "url": "genius.com", - "version": "2.0.24", + "version": "2.0.25", "logo": "https://cdn.rcd.gg/PreMiD/websites/G/Genius/assets/logo.png", "thumbnail": "https://cdn.rcd.gg/PreMiD/websites/G/Genius/assets/thumbnail.png", "color": "#FFFF64", diff --git a/websites/G/Genius/presence.ts b/websites/G/Genius/presence.ts index b0b0d775e9e4..3779075f9044 100644 --- a/websites/G/Genius/presence.ts +++ b/websites/G/Genius/presence.ts @@ -74,18 +74,9 @@ presence.on("UpdateData", async () => { document.querySelector("div[class*='SongPageGrid']") !== null || document.querySelector(".song_body-lyrics") !== null ) { + const artist = await presence.getPageVariable("_sf_async_config.authors"); presenceData.details = strings.lyrics; - presenceData.state = `${ - document - .querySelector("a[class*='SongHeaderdesktop__Artist']") - ?.textContent.trim() || - document - .querySelector("a[class*='SongHeadermobile__Artist']") - ?.textContent.trim() || - document - .querySelector("a[class*='HeaderArtistAndTracklistdesktop__Artist']") - ?.textContent.trim() - } - ${ + presenceData.state = `${artist["_sf_async_config.authors"]} - ${ document .querySelector('h1[class*="SongHeaderdesktop__Title"]') ?.textContent.trim() ||