Fix songs in dynamic subsonic playlist
This commit is contained in:
parent
06ba555492
commit
1d582ba158
@ -219,7 +219,10 @@ void SubsonicDynamicPlaylist::GetAlbum(SubsonicService* service,
|
|||||||
qint64 length = reader.attributes().value("duration").toString().toInt();
|
qint64 length = reader.attributes().value("duration").toString().toInt();
|
||||||
length *= kNsecPerSec;
|
length *= kNsecPerSec;
|
||||||
song.set_length_nanosec(length);
|
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");
|
QUrl cover_url = service->BuildRequestUrl("getCoverArt");
|
||||||
QUrlQuery cover_url_query(cover_url.query());
|
QUrlQuery cover_url_query(cover_url.query());
|
||||||
cover_url_query.addQueryItem("id", id);
|
cover_url_query.addQueryItem("id", id);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user