fix progressbar

This commit is contained in:
Snowflake107 2021-04-09 15:58:07 +05:45
parent 249a7e71ac
commit cf1def6104

View file

@ -732,9 +732,9 @@ export class Player extends EventEmitter {
if (Boolean(options?.timecodes)) { if (Boolean(options?.timecodes)) {
const currentTimecode = Util.buildTimeCode(Util.parseMS(currentStreamTime)); const currentTimecode = Util.buildTimeCode(Util.parseMS(currentStreamTime));
const endTimecode = Util.buildTimeCode(Util.parseMS(totalTime)); const endTimecode = Util.buildTimeCode(Util.parseMS(totalTime));
return `${currentTimecode}${indicator}${line.repeat(length)}${endTimecode}`; return `${currentTimecode}${indicator}${line.repeat(length - 1)}${endTimecode}`;
} else { } else {
return `${indicator}${line.repeat(length)}`; return `${indicator}${line.repeat(length - 1)}`;
} }
} }
} }