From d2e19ef4c3d2e0f318c501f43a3e458773eba12d Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Tue, 2 Jul 2024 17:50:11 +0200 Subject: [PATCH] SpotifyRequest: Add include_groups for albums query --- src/spotify/spotifyrequest.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/spotify/spotifyrequest.cpp b/src/spotify/spotifyrequest.cpp index 7cebf9929..4d81f692a 100644 --- a/src/spotify/spotifyrequest.cpp +++ b/src/spotify/spotifyrequest.cpp @@ -291,6 +291,9 @@ void SpotifyRequest::FlushAlbumsRequests() { parameters << Param(QStringLiteral("type"), QStringLiteral("album")); 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.offset > 0) parameters << Param(QStringLiteral("offset"), QString::number(request.offset)); QNetworkReply *reply = nullptr;