Skip to content

Commit

Permalink
feat(YouTube Music): utilize largeImageText for albums
Browse files Browse the repository at this point in the history
  • Loading branch information
kyrie25 committed Jan 13, 2025
1 parent 08abe4d commit 6ef6591
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion websites/Y/YouTube Music/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"vi_VN": "Một dịch vụ phát nhạc với các album, đĩa đơn, video, bản remix, và các tiết mục trực tiếp chính thức và hơn nữa cho Android, iOS và máy tính. Tất cả đều tại đây."
},
"url": "music.youtube.com",
"version": "3.0.25",
"version": "3.0.26",
"logo": "https://cdn.rcd.gg/PreMiD/websites/Y/YouTube%20Music/assets/logo.png",
"thumbnail": "https://cdn.rcd.gg/PreMiD/websites/Y/YouTube%20Music/assets/thumbnail.png",
"color": "#E40813",
Expand Down
4 changes: 2 additions & 2 deletions websites/Y/YouTube Music/presence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,13 @@ presence.on("UpdateData", async () => {

presenceData = {
type: ActivityType.Listening,
name: mediaSession.metadata.title,
largeImageKey: showCover
? mediaSession?.metadata?.artwork?.at(-1)?.src ??
"https://cdn.rcd.gg/PreMiD/websites/Y/YouTube%20Music/assets/1.png"
: "https://cdn.rcd.gg/PreMiD/websites/Y/YouTube%20Music/assets/1.png",
details: mediaSession.metadata.album,
details: mediaSession.metadata.title,
state: mediaSession.metadata.artist,
largeImageText: mediaSession.metadata.album,
...(showButtons && {
buttons,
}),
Expand Down

0 comments on commit 6ef6591

Please sign in to comment.