aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorMax Isom <[email protected]>2022-03-15 18:58:39 -0400
committerGitHub <[email protected]>2022-03-15 17:58:39 -0500
commitdf803b8c76fad938baa8c9f348f934e5221512cd (patch)
tree91c5cea7f1e369aebb5507878cc99146dc32389f /src/utils
parent667894e829448c140564c553ac438931f1c0a383 (diff)
downloadmuse-df803b8c76fad938baa8c9f348f934e5221512cd.tar.xz
muse-df803b8c76fad938baa8c9f348f934e5221512cd.zip
Fix YouTube track live attribute (#574)
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/build-embed.ts2
1 files changed, 1 insertions, 1 deletions
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}]\` 🔉`;
};