SpotifyRequest: Add include_groups for albums query

This commit is contained in:
Jonas Kvinge 2024-07-02 17:50:11 +02:00
parent 4509c43b81
commit d2e19ef4c3
1 changed files with 3 additions and 0 deletions

View File

@ -291,6 +291,9 @@ void SpotifyRequest::FlushAlbumsRequests() {
parameters << Param(QStringLiteral("type"), QStringLiteral("album")); parameters << Param(QStringLiteral("type"), QStringLiteral("album"));
parameters << Param(QStringLiteral("q"), search_text_); parameters << Param(QStringLiteral("q"), search_text_);
} }
else {
parameters << Param(QStringLiteral("include_groups"), QStringLiteral("album,single"));
}
if (request.limit > 0) parameters << Param(QStringLiteral("limit"), QString::number(request.limit)); if (request.limit > 0) parameters << Param(QStringLiteral("limit"), QString::number(request.limit));
if (request.offset > 0) parameters << Param(QStringLiteral("offset"), QString::number(request.offset)); if (request.offset > 0) parameters << Param(QStringLiteral("offset"), QString::number(request.offset));
QNetworkReply *reply = nullptr; QNetworkReply *reply = nullptr;