archived-bot icon indicating copy to clipboard operation
archived-bot copied to clipboard

Show author / channel name for tracks

Open schnapster opened this issue 7 years ago • 3 comments

Picked this up from #suggestions

Let's think about displaying the author / channel of a track. We do have access to this information through AudioTrack#getInfo#author, which seems to return the channel name for Youtube and Soundcloud tracks. Current state: image Possible future state: image

Opinions? Ideas how to display this decently?

I think the biggest hurdle might be that a channel name a lot of the time isn't even close the the author of a track, so we should make it clear that it's a channel name, not the author of a track.

schnapster avatar Nov 17 '17 16:11 schnapster

Hi Psy here.

Seems that SoundCloud does NOT provide the artists name on a separate field. From here https://developers.soundcloud.com/docs/api/reference#tracks seems that you can get the channel name and the song name, not the artists. You can also get the record label name, but this is not relevant on this case. So, SC and YT are both providing the same information: songname and channelname

As a template, I like [songname] on [channelname] channel ([duration]). Ex: "2 Kids on SwimmingGirlsVEVO channel (03:16)"

druellan avatar Nov 20 '17 13:11 druellan

I agree with the above. SoundCloud doesn't pass the artist name, even though there is an option for it when you upload tracks. No one really uses that option anyway because it's tucked away in the metadata section when you upload a track.

Anyways, as @druellan mentioned, that is correct. SoundCloud data is pretty universal (any link can be resolved with their /resolve endpoint) and the user ("channel") name is part of the user-JSON field contained in every track/playlist result from the API. I think the template suggested above is pretty good. You can even keep it fairly simple/elegant and I think most users will get it IMO (similar to how Facebook got rid of the send button on their chat and users know to push enter) 😄

Song • Channel • [duration]

2 Kids • SwimmingGirlsVEVO • [3:16]

Song - Channel - [duration]

2 Kids - SwimmingGirlsVEVO - [3:16]

This is how Spotify does it as well, they just provide the artist name/album since they have it:

screen shot 2017-11-20 at 9 08 21 am

shikhir-arora avatar Nov 20 '17 14:11 shikhir-arora

As Napster said the artist is provided by lavalink already image

freyacodes avatar Nov 20 '17 17:11 freyacodes