utility.presence: fix start being longer than end timestamps failing to repeat
This commit is contained in:
parent
87518e084f
commit
be4210bd26
1 changed files with 1 additions and 1 deletions
|
@ -964,7 +964,7 @@ presence.callback = async function (msg, line) {
|
||||||
const timePos = formatTime(position);
|
const timePos = formatTime(position);
|
||||||
|
|
||||||
const progress =
|
const progress =
|
||||||
activity.timestamps.start == activity.timestamps.end
|
activity.timestamps.start >= activity.timestamps.end
|
||||||
? 1
|
? 1
|
||||||
: position / length;
|
: position / length;
|
||||||
const barLength = Math.round(progress * NOWPLAYING_BAR_LENGTH);
|
const barLength = Math.round(progress * NOWPLAYING_BAR_LENGTH);
|
||||||
|
|
Loading…
Reference in a new issue