From 1becebdcd5565db9e3ba8fff1b5d444ab26c7ec6 Mon Sep 17 00:00:00 2001 From: mini-bomba <55105495+mini-bomba@users.noreply.github.com> Date: Sat, 8 Oct 2022 09:04:37 +0200 Subject: [PATCH] Actually pass the ignoreCache param, as the comment suggests --- src/routes/voteOnSponsorTime.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/voteOnSponsorTime.ts b/src/routes/voteOnSponsorTime.ts index 97b7c5c..bba06fb 100644 --- a/src/routes/voteOnSponsorTime.ts +++ b/src/routes/voteOnSponsorTime.ts @@ -59,7 +59,7 @@ async function updateSegmentVideoDuration(UUID: SegmentUUID) { let apiVideoDetails: videoDetails = null; if (service == Service.YouTube) { // don't use cache since we have no information about the video length - apiVideoDetails = await getVideoDetails(videoID); + apiVideoDetails = await getVideoDetails(videoID, true); } const apiVideoDuration = apiVideoDetails?.duration as VideoDuration; if (videoDurationChanged(videoDuration, apiVideoDuration)) {