{#if search.token == null}

Search the Soulseek network

{app.connection === "online" ? `Connected as ${app.username} — search for an artist or album.` : "You'll be asked to log in on your first search."}

{:else}
{groups.length} folders · {search.responses} users {#if search.searching}· searching…{/if}
{#each groups.slice(0, 120) as g (g.key)}
{#if expanded[g.key]}
{#each filesForGroup(g.key, g.fileCount) as f (f.path)}
{f.name} {f.bitrate ? `${f.bitrate} kbps` : ""} {f.duration != null ? " · " + fmtDuration(f.duration) : ""} · {fmtSize(f.size)}
{/each}
{/if}
{/each}
{/if}