Bump version to 1.0.1, implement automatic online search fallback with debounce, cover art notifications, and stream details edit

This commit is contained in:
Sebastian Palencsar
2026-05-22 16:44:21 +02:00
parent 79e2278a54
commit 8f49573c8a
9 changed files with 306 additions and 33 deletions

View File

@@ -9,6 +9,7 @@
#include <QDir>
#include <QFile>
#include <QCryptographicHash>
#include <QDebug>
namespace {
QString apiCacheDir()
@@ -25,7 +26,15 @@ RadioBrowser::RadioBrowser(QObject *parent)
void RadioBrowser::search(const QString &query)
{
QString endpoint = "/stations/byname/" + QUrl::toPercentEncoding(query);
QUrlQuery queryParams;
queryParams.addQueryItem("name", query);
queryParams.addQueryItem("hidebroken", "true");
queryParams.addQueryItem("limit", "50");
queryParams.addQueryItem("order", "votes");
queryParams.addQueryItem("reverse", "true");
QString endpoint = "/stations/search?" + queryParams.toString(QUrl::FullyEncoded);
qDebug() << "RadioBrowser: Searching with endpoint:" << endpoint;
makeRequest(endpoint);
}