diff --git a/packages/web/src/routes/$username.tsx b/packages/web/src/routes/$username.tsx index 52cfef7c..d4982f91 100644 --- a/packages/web/src/routes/$username.tsx +++ b/packages/web/src/routes/$username.tsx @@ -241,8 +241,10 @@ function StreamPage() { const nowPlayingArtists = nowPlayingTrack?.artists.length ? nowPlayingTrack.artists.join(", ") : null - const nowPlayingEmbedUrl = nowPlayingTrack?.id - ? `https://open.spotify.com/embed/${nowPlayingTrack.type}/${nowPlayingTrack.id}?utm_source=linsa&theme=0` + const nowPlayingText = nowPlayingTrack + ? nowPlayingArtists + ? `${nowPlayingArtists} — ${nowPlayingTrack.title}` + : nowPlayingTrack.title : null return ( @@ -318,74 +320,31 @@ function StreamPage() {
Not live right now
- -- {nowPlaying?.isPlaying ? "Currently playing" : "Spotify"} -
- +Checking Spotify...
+ Checking Spotify... ) : nowPlaying?.isPlaying && nowPlayingTrack ? ( -- {nowPlayingTrack.title} -
- {nowPlayingArtists ? ( -- {nowPlayingArtists} -
- ) : null} - {nowPlayingTrack.album ? ( -- {nowPlayingTrack.album} -
- ) : null} -- Spotify status unavailable right now. -
+ Spotify status unavailable right now. ) : ( -- Not playing anything right now. -
+ Not playing anything right now. )}