{pageTitle('Library · Albums')}

Albums

{#if !query.isPending && !query.isError}

{total} {total === 1 ? 'album' : 'albums'}

{/if}
{#if albums.length > 0} {/if}
{#if query.isError} {:else if showSkeleton.value && albums.length === 0}

Loading…

{:else if !query.isPending && total === 0}

No albums yet — scan a library folder via the server's config.

{:else if filter.trim() && filtered.length === 0}

No albums in your loaded library match '{filter.trim()}'. Search the full library →

{:else} a.sort_title || a.title} > {#snippet item(album: AlbumRef)} {/snippet} {#if query.hasNextPage} query.fetchNextPage()} /> {#if query.isFetchingNextPage}

Loading more…

{/if} {:else if albums.length > 0}

End of library

{/if} {/if}