diff --git a/pkg/service/soundtouchweb/static/js/components/Library.js b/pkg/service/soundtouchweb/static/js/components/Library.js index 694de28..d8d4222 100644 --- a/pkg/service/soundtouchweb/static/js/components/Library.js +++ b/pkg/service/soundtouchweb/static/js/components/Library.js @@ -96,10 +96,13 @@ export function Library({ devices }) { } async function playEntry(entry) { + // Pass the entry's own type so a folder selects as a container ("dir") + // rather than a single track — that lets the speaker queue the folder so + // next/previous and auto-advance work, instead of stopping after one item. await api.libraryPlay(deviceId, { account: server.account, location: entry.location, - type: 'track', + type: entry.type || 'track', name: entry.name, }); setPlayingName(entry.name); @@ -251,10 +254,10 @@ export function Library({ devices }) { ${entry.name} ${entry.type ? html`${entry.type}` : null} - ${entry.playable && !entry.isDir ? html` + ${entry.playable || entry.isDir ? html` ` : null}