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

@@ -74,10 +74,10 @@ QUrl SubsonicBaseRequest::CreateUrl(const QString &ressource_name, const QList<P
QUrl url(server_url());
if (!url.path().isEmpty() && url.path().right(1) == "/") {
url.setPath(url.path() + QString("rest/") + ressource_name);
url.setPath(url.path() + QString("rest/") + ressource_name + QString(".view"));
}
else
url.setPath(url.path() + QString("/rest/") + ressource_name);
url.setPath(url.path() + QString("/rest/") + ressource_name + QString(".view"));
url.setQuery(url_query);