mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-17 13:08:49 +03:00
Actually pass the ignoreCache param, as the comment suggests
This commit is contained in:
@@ -59,7 +59,7 @@ async function updateSegmentVideoDuration(UUID: SegmentUUID) {
|
|||||||
let apiVideoDetails: videoDetails = null;
|
let apiVideoDetails: videoDetails = null;
|
||||||
if (service == Service.YouTube) {
|
if (service == Service.YouTube) {
|
||||||
// don't use cache since we have no information about the video length
|
// 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;
|
const apiVideoDuration = apiVideoDetails?.duration as VideoDuration;
|
||||||
if (videoDurationChanged(videoDuration, apiVideoDuration)) {
|
if (videoDurationChanged(videoDuration, apiVideoDuration)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user