diff --git a/server/lib/job-queue/handlers/video-import.ts b/server/lib/job-queue/handlers/video-import.ts index 11ccd47ed..beb78b4a6 100644 --- a/server/lib/job-queue/handlers/video-import.ts +++ b/server/lib/job-queue/handlers/video-import.ts @@ -118,8 +118,8 @@ async function processFile (downloader: () => Promise, videoImport: MVid const probe = await ffprobePromise(tempVideoPath) const { resolution } = await isAudioFile(tempVideoPath, probe) - ? await getVideoFileResolution(tempVideoPath) - : { resolution: VideoResolution.H_NOVIDEO } + ? { resolution: VideoResolution.H_NOVIDEO } + : await getVideoFileResolution(tempVideoPath) const fps = await getVideoFileFPS(tempVideoPath, probe) const duration = await getDurationFromVideoFile(tempVideoPath, probe)