From df803b8c76fad938baa8c9f348f934e5221512cd Mon Sep 17 00:00:00 2001 From: Max Isom Date: Tue, 15 Mar 2022 18:58:39 -0400 Subject: Fix YouTube track live attribute (#574) --- src/utils/build-embed.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/utils') diff --git a/src/utils/build-embed.ts b/src/utils/build-embed.ts index 1979f7d..0925da1 100644 --- a/src/utils/build-embed.ts +++ b/src/utils/build-embed.ts @@ -45,7 +45,7 @@ const getPlayerUI = (player: Player) => { const position = player.getPosition(); const button = player.status === STATUS.PLAYING ? '⏹️' : '▶️'; const progressBar = getProgressBar(15, position / song.length); - const elapsedTime = `${prettyTime(position)}/${song.isLive ? 'live' : prettyTime(song.length)}`; + const elapsedTime = song.isLive ? 'live' : `${prettyTime(position)}/${prettyTime(song.length)}`; return `${button} ${progressBar} \`[${elapsedTime}]\` 🔉`; }; -- cgit v1.2.3