1
0
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:
Arnaud Bienner 2012-08-08 23:50:20 +02:00
parent 2bf84f77d9
commit 9b8f5892af

View File

@ -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);