[Feature Request]: set background music album/artist/title for mpris metadata #1323
Labels
No labels
awaiting-reply
breaking changes
bug
cannot-reproduce
dependencies
documentation
duplicate
electron-issue
enhancement
fix-available
good first issue
help wanted
invalid
javascript
need more information
need rebase
official-youtube-music-issue
plugin request
question
release
security
stale
Status: blocked
typo
wontfix
ytmd-issue
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: YTMD/youtube-music#1323
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Preflight Checklist
Problem Description
current behaviour of youtube-music gives strange metainfo for external mpris controller, while you could find background music title/singers/album on Youtube (for example this MMD video)
Proposed Solution
query youtube api and set album / title / singers
Alternatives Considered
set youtube movie URL in xesam:url, so external players may query the necessary meta info themselves
Additional Information
No response
Please enable the
shortcuts
plugin6774d54f5e/src/plugins/shortcuts/mpris.ts (L155-L162)
thx. I will mention this plugin in my README
I keep opening this issue because I think we need extra help to solve it.
If there is a way to get background music data directly from YouTube Music, I don't need to use the ugly hack to fix this issue.
I tried every 'part' (
contentDetails,id,liveStreamingDetails,localizations,player,recordingDetails,snippet,statistics,status,topicDetails
) public but none is related to the background musichttps://developers.google.com/youtube/v3/docs/videos/list
or could we locate
ytd-video-description-music-section-renderer
tag and read SONG, ARTIST and ALBUM with electron?This is pretty hacky and may easily break with youtube updates
It seems to doesn't work on YTM
create a hidden BrowserWindow and once received ready-to-show we could locate
ytd-video-description-music-section-renderer
and read up to three meta info in order of "title, artist, album"for a complete demo:
This is similarly related, may need it's own issue. Could you possibly set the mpris player to something other than chromium? I know it's hard coded but there is supposedly an npm package that has support for mpris metadata not present in chromium's source code, but idk how well it works nor how difficult implementation of this would be. Using this it would also be possible to set the artUrl so external player controllers could see the album art.
https://github.com/th-ch/youtube-music/issues/1323#issuecomment-1764185013