Fix ampache compatibility

This commit is contained in:
Jonas Kvinge
2019-09-08 19:46:51 +02:00
parent fb377c32ea
commit c0ebbc8e2f
4 changed files with 22 additions and 7 deletions

View File

@@ -55,10 +55,10 @@ UrlHandler::LoadResult SubsonicUrlHandler::StartLoading(const QUrl &url) {
QUrl stream_url(server_url());
if (!stream_url.path().isEmpty() && stream_url.path().right(1) == "/") {
stream_url.setPath(stream_url.path() + QString("rest/stream"));
stream_url.setPath(stream_url.path() + QString("rest/stream.view"));
}
else
stream_url.setPath(stream_url.path() + QString("/rest/stream"));
stream_url.setPath(stream_url.path() + QString("/rest/stream.view"));
stream_url.setQuery(url_query);