{#if album}
{album.title}
push("artist", { name: album.artist }, screenEl)}>{album.artist}
{album.year ?? "—"} · {tracks.length || album.track_count} tracks{total ? ` · ${longDur(total)}` : ""}
{#if fmt}
{fmt}
in your library
{/if}
playAlbumShuffled(album, tracks)} aria-label="Shuffle">
tracks.length && playAt(tracks[0])} aria-label="Play">
openHalf("album", { album, tracks })} aria-label="More">
{#each discs as [d, list] (d)} {#if discs.length > 1}
Disc {d}
{/if}
{#each list as t, i (t.id)}
playAt(t)} oncontextmenu={(e) => { e.preventDefault(); openHalf("track", { album, track: t }); }}>
{t.track_no ?? i + 1}
{t.title}
{#if various && t.artist}
{t.artist}
{/if}
{mmss(t.duration_secs)}
{}} onclick={(e) => { e.stopPropagation(); openHalf("track", { album, track: t }); }}>
{/each}
{/each} {#if more.length}
More by {album.artist}
push("artist", { name: album.artist }, screenEl)}>All
{#each more as x (x.id)}
push("album", { id: x.id }, screenEl)} /> {/each}
{/if} {:else}
That record is gone.
It is no longer in the library.
{/if}