diff options
| author | Max Isom <[email protected]> | 2022-03-15 18:58:39 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-03-15 17:58:39 -0500 |
| commit | df803b8c76fad938baa8c9f348f934e5221512cd (patch) | |
| tree | 91c5cea7f1e369aebb5507878cc99146dc32389f /src/utils | |
| parent | 667894e829448c140564c553ac438931f1c0a383 (diff) | |
| download | muse-df803b8c76fad938baa8c9f348f934e5221512cd.tar.xz muse-df803b8c76fad938baa8c9f348f934e5221512cd.zip | |
Fix YouTube track live attribute (#574)
Diffstat (limited to 'src/utils')
| -rw-r--r-- | src/utils/build-embed.ts | 2 |
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}]\` đ`; }; |
