feat: add autoplay suggestions when queue runs out
Some checks failed
Build for Windows / build-windows (push) Has been cancelled

This commit is contained in:
joren
2026-03-30 23:14:43 +02:00
parent 2da934f3f6
commit cfd91f96b5
11 changed files with 208 additions and 0 deletions

View File

@@ -241,6 +241,17 @@ public:
emit queueChanged();
}
/// Append tracks to the main queue tail (autoplay/discovery).
void appendToContext(const QJsonArray &tracks)
{
for (const auto &v : tracks) {
const QJsonObject t = v.toObject();
if (t["streamable"].toBool(true))
m_queue.append(t);
}
emit queueChanged();
}
/// Move an upcoming item (by its index in upcomingTracks()) to the front of playNext.
void moveUpcomingToTop(int upcomingIndex)
{