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

@@ -217,8 +217,19 @@ QVariantMap MprisPlayerAdaptor::metadata() const
if (!artist.isEmpty()) {
map.insert(QStringLiteral("xesam:artist"), QStringList{artist});
}
if (!coverUrl.isEmpty()) {
map.insert(QStringLiteral("mpris:artUrl"), coverUrl);
QString artUrl = coverUrl;
if (artUrl.isEmpty() && m_backend) {
QObject *stationObj = m_backend->currentStation();
if (stationObj) {
QString fav = stationObj->property("favicon").toString();
if (fav.startsWith(QLatin1String("https://"))) {
artUrl = fav;
}
}
}
if (!artUrl.isEmpty()) {
map.insert(QStringLiteral("mpris:artUrl"), artUrl);
} else {
QString iconPath = QStandardPaths::locate(QStandardPaths::GenericDataLocation, QStringLiteral("icons/hicolor/256x256/apps/org.kde.bearwave.png"));
if (!iconPath.isEmpty()) {