From cf1def610451442b1a9e7388866c38a6659f34fb Mon Sep 17 00:00:00 2001 From: Snowflake107 Date: Fri, 9 Apr 2021 15:58:07 +0545 Subject: [PATCH] fix progressbar --- src/Player.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Player.ts b/src/Player.ts index 0878b85..88950b5 100644 --- a/src/Player.ts +++ b/src/Player.ts @@ -732,9 +732,9 @@ export class Player extends EventEmitter { if (Boolean(options?.timecodes)) { const currentTimecode = Util.buildTimeCode(Util.parseMS(currentStreamTime)); const endTimecode = Util.buildTimeCode(Util.parseMS(totalTime)); - return `${currentTimecode} ┃ ${indicator}${line.repeat(length)} ┃ ${endTimecode}`; + return `${currentTimecode} ┃ ${indicator}${line.repeat(length - 1)} ┃ ${endTimecode}`; } else { - return `${indicator}${line.repeat(length)}`; + return `${indicator}${line.repeat(length - 1)}`; } } }