mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-11 01:14:24 +01:00
Qt5
* Fixing a couple of issues with subsonic in the qt5 port * Forgot to add this fixes as well, otherwise won't play music!
This commit is contained in:
parent
182e5c3034
commit
f1825629db
@ -99,7 +99,7 @@ PlaylistItemList SubsonicDynamicPlaylist::GenerateMore(int count) {
|
||||
|
||||
if (count > kMaxCount) count = kMaxCount;
|
||||
|
||||
QUrlQuery url_query;
|
||||
QUrlQuery url_query(url.query());
|
||||
url_query.addQueryItem("type", GetTypeString());
|
||||
url_query.addQueryItem("size", QString::number(count));
|
||||
url_query.addQueryItem("offset", QString::number(offset_));
|
||||
@ -160,7 +160,7 @@ void SubsonicDynamicPlaylist::GetAlbum(SubsonicService* service,
|
||||
QNetworkAccessManager& network,
|
||||
const bool usesslv3) {
|
||||
QUrl url = service->BuildRequestUrl("getAlbum");
|
||||
QUrlQuery url_query;
|
||||
QUrlQuery url_query(url.query());
|
||||
url_query.addQueryItem("id", id);
|
||||
if (service->IsAmpache()) {
|
||||
url_query.addQueryItem("ampache", "1");
|
||||
|
@ -31,7 +31,7 @@ UrlHandler::LoadResult SubsonicUrlHandler::StartLoading(const QUrl& url) {
|
||||
return LoadResult(url);
|
||||
|
||||
QUrl newurl = service_->BuildRequestUrl("stream");
|
||||
QUrlQuery url_query;
|
||||
QUrlQuery url_query(newurl.query());
|
||||
url_query.addQueryItem("id", url.host());
|
||||
newurl.setQuery(url_query);
|
||||
return LoadResult(url, LoadResult::TrackAvailable, newurl);
|
||||
|
Loading…
Reference in New Issue
Block a user