From f7c9eb5e5be6176fab51464c026e353b8d67381d Mon Sep 17 00:00:00 2001 From: ElementalAlchemist Date: Thu, 11 Nov 2021 19:24:20 -0600 Subject: [PATCH] Fix incorrect variable reference --- thrimbletrimmer/scripts/edit.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/thrimbletrimmer/scripts/edit.js b/thrimbletrimmer/scripts/edit.js index 01340d8..9dead47 100644 --- a/thrimbletrimmer/scripts/edit.js +++ b/thrimbletrimmer/scripts/edit.js @@ -426,7 +426,8 @@ async function initializeVideoInfo() { } function updateWaveform() { - let waveformURL = "/waveform/" + globalStreamName + "/" + videoInfo.video_quality + ".png?size=1920x125&"; + let waveformURL = + "/waveform/" + globalStreamName + "/" + videoInfo.video_quality + ".png?size=1920x125&"; const queryStringParts = startAndEndTimeQueryStringParts(); waveformURL += queryStringParts.join("&"); @@ -1006,7 +1007,7 @@ function videoPlayerTimeFromWubloaderTime(wubloaderTime) { const lastSegmentStartTime = DateTime.fromISO(lastSegment.rawProgramDateTime); const lastSegmentEndTime = lastSegmentStartTime.plus({ seconds: lastSegment.duration }); if (lastSegmentStartTime <= wubloaderDateTime && wubloaderDateTime <= lastSegmentEndTime) { - return segment.start + wubloaderDateTime.diff(lastSegmentStartTime).as("seconds"); + return lastSegment.start + wubloaderDateTime.diff(lastSegmentStartTime).as("seconds"); } return null; }