browser-mpris2
browser-mpris2 copied to clipboard
Provide channelname as xesam:artist
This uses yt-formatted-string
-tags, which opens up the possibility to get more data from the YouTube page. These may however require more maintenance if YouTube changes their layout.
Hello, sorry for the delay.
The reason I didn't use the channel name as the artist is that in many cases it's the channel is not actually the content creator/artist. However, I'm not opposed to this PR.
YouTube sometimes also exposes content-id info about songs in a video though this gets less useful in videos with many songs.
About the videos with many songs, according to the freedesktop specification, xesam:artist
is a list of strings, so we could add all the different artists. If you want to I can look into the content-id titles, and keep the channel as a fallback.