-
{currentItem.stream.username.slice(0, 1).toUpperCase()}
-
{currentItem.stream.username}
-
-
-
-
Buffered {(player.streamReceived / 1048576).toFixed(1)} / {(player.streamTotal / 1048576).toFixed(1)} MB
-
{Math.round(bufferPct)}%
+
+
+
+
+ {#each panes as p (p)}
+
+ {/each}
+
+
+
+ {#key pane}
+
+ {#if pane === "queue"}
+ {#if upNext}
+
+ {/if}
+ {#if player.queue.length > 1}
+
+ {albumMode ? "From the album" : "Queue"}
+ {player.queue.length} tracks
-
+
+ {#each player.queue as item, i}
+ {@const lis = listenersOf(item)}
+
+ {/each}
+
+ {:else}
+
Nothing queued after this one.
+ {/if}
+
+ {:else if pane === "lyrics"}
+
+ Lyrics aren't wired up yet — this pane is a placeholder.
+
+
+ {:else if pane === "artist"}
+ {@render artistChip()}
+ {#if discovery.socials.length}
+
+ {/if}
+ {#if releaseList.length}
+
+ Releases
+ {#if discovery.albumCount}{discovery.albumCount} total{/if}
+
+
+ {#each releaseList as al (al.id)}
+
+ {/each}
+
+ {#if discovery.albums.length > moreAlbums.length}
+
+ {/if}
+ {/if}
+ {#if relatedArtists.length}
+
Fans also like
+
+ {#each relatedArtists as ar}
+
+ {/each}
+
+ {/if}
+
+ {:else}
+ {#if albumInfo?.description}
+
About this record
+
{albumInfo.description}
+
+ {/if}
+ {#if creditsLine || albumInfo?.label || albumInfo?.genre}
+
+ Released
+ {creditsLine}
+ {#if albumInfo?.label || albumInfo?.genre}
+
{albumInfo.label ?? ""}{albumInfo.label && albumInfo.genre ? " · " : ""}{albumInfo.genre ?? ""}
+ {/if}
+
+ {/if}
+
About the artist
+ {@render artistChip()}
+ {#if discovery.bio}
+
{discovery.bio}
+
+ {/if}
+ {#if !albumInfo?.description && !discovery.bio}
+
Nothing written about this record yet.
+ {/if}
{/if}
-
-
-
-
-
- {/if}
-
-
- {#if player.queue.length > 1}
-
-
{albumMode ? "From the album" : "Queue"}
-
- {#each player.queue as item, i}
-
- {/each}
-
-
- {/if}
-
-
- {#if moreAlbums.length}
-
-
More from {artistName}
-
- {#each moreAlbums as al}
-
- {/each}
-
-
- {/if}
-
-
- {#if relatedArtists.length}
-
-
Fans also like
-
- {#each relatedArtists as ar}
-
- {/each}
-
-
- {/if}
-
-
- {#if discovery.artistId && (discovery.picture || discovery.albumCount)}
-
-
About the artist
-
-
-
-
- {#if discovery.bio}
-
-
{discovery.bio}
-
-
- {/if}
-
-
-
{discovery.albumCount ?? "—"}releases
-
{fmtFans(discovery.fans)}fans
-
{inLibraryCount}in library
-
-
-
- {/if}
+ {/key}
{:else}
@@ -436,6 +951,31 @@
{/if}
{/if}
+