diff --git a/src/routes/postSkipSegments.ts b/src/routes/postSkipSegments.ts index 217be5c..b377e53 100644 --- a/src/routes/postSkipSegments.ts +++ b/src/routes/postSkipSegments.ts @@ -348,7 +348,7 @@ async function checkEachSegmentValid(rawIP: IPAddress, paramUserID: UserID, user async function checkByAutoModerator(videoID: VideoID, userID: HashedUserID, segments: IncomingSegment[], service: Service, apiVideoDetails: videoDetails, videoDuration: number): Promise { // Auto moderator check - if (service == Service.YouTube) { + if (service == Service.YouTube && apiVideoDetails) { const autoModerateResult = await autoModerateSubmission(apiVideoDetails, { videoID, userID, segments, service, videoDuration }); if (autoModerateResult) { return {