Actually pass the ignoreCache param, as the comment suggests

This commit is contained in:
mini-bomba 2022-10-08 09:04:37 +02:00
parent b417241ca0
commit 1becebdcd5
No known key found for this signature in database
GPG key ID: 30F8B138B4794886

View file

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