1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-23 08:20:01 +01:00

Fix songs in dynamic subsonic playlist

This commit is contained in:
Sophie Tauchert 2020-04-08 14:56:07 +02:00 committed by John Maguire
parent 06ba555492
commit 1d582ba158

View File

@ -219,7 +219,10 @@ void SubsonicDynamicPlaylist::GetAlbum(SubsonicService* service,
qint64 length = reader.attributes().value("duration").toString().toInt();
length *= kNsecPerSec;
song.set_length_nanosec(length);
QUrl url = QUrl(QString("subsonic://%1").arg(id));
QUrl url = QUrl(QString("subsonic://"));
QUrlQuery song_query(url.query());
song_query.addQueryItem("id", id);
url.setQuery(song_query);
QUrl cover_url = service->BuildRequestUrl("getCoverArt");
QUrlQuery cover_url_query(cover_url.query());
cover_url_query.addQueryItem("id", id);