{#if loadError}

Couldn't load the library folders.

{:else if current === null}

Loading…

{:else if !editing} {#each current.folders as f (f.path)}{f.path}{:else}—{/each} {#each current.folders.filter((f) => !f.present) as f (f.path)}

The server can't see {f.path}{f.tracks > 0 ? `, which holds ${plural(f.tracks, 'track', 'tracks')}` : ''}. If its files are now somewhere else, change the folder to where they are.

{/each} {:else}
Folders

Change a folder's path when its files have moved; the tracks move with it and keep their plays, likes and playlists. Each path is as the server sees it, inside its container.

{#each rows as row, i (i)}
{/each}
{#each moved as m (m.was)}

{m.was} → {m.path.trim()}: its tracks move with it.

{/each} {#each removed as f (f.path)}

{f.path} will no longer be read{f.tracks > 0 ? `; its ${plural(f.tracks, 'track is', 'tracks are')} marked missing at the next scan` : ''}.

{/each}
{#if blank}

Fill in or remove the empty folder.

{:else if rows.length === 0}

The library needs at least one folder.

{/if}
{/if}