mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-16 19:31:02 +01:00
Set soundcloud tracks' artist field with username value.
Sounds better than "Unknown", but not perfect...
This commit is contained in:
parent
2bf84f77d9
commit
9b8f5892af
@ -233,6 +233,11 @@ Song SoundCloudService::ExtractSong(const QVariantMap& result_song) {
|
||||
stream_url.addQueryItem("client_id", kApiClientId);
|
||||
song.set_url(stream_url);
|
||||
|
||||
QString username = result_song["user"].toMap()["username"].toString();
|
||||
// We don't have a real artist name, but username is the most similar thing
|
||||
// we have
|
||||
song.set_artist(username);
|
||||
|
||||
QString title = result_song["title"].toString();
|
||||
song.set_title(title);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user