otommod / browser-mpris2

Implements the MPRIS2 interface for Chrome and Firefox
92 stars 21 forks source link

Provide channelname as xesam:artist #18

Open Robbe7730 opened 5 years ago

Robbe7730 commented 5 years ago

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.

otommod commented 5 years ago

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.

Robbe7730 commented 5 years ago

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.