utility.presence: fix start being longer than end timestamps failing to repeat

This commit is contained in:
Cynthia Foxwell 2023-08-24 16:49:32 -06:00
parent 87518e084f
commit be4210bd26

View file

@ -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);