From 5354af75b372cf079384d44592a58f1db96982f6 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 23 Dec 2021 13:40:47 +0100 Subject: Fix video import transcoding --- server/lib/job-queue/handlers/video-import.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/lib/job-queue/handlers/video-import.ts') 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) -- cgit v1.2.3