aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib')
-rw-r--r--server/lib/job-queue/handlers/video-import.ts4
1 files changed, 2 insertions, 2 deletions
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<string>, videoImport: MVid
118 const probe = await ffprobePromise(tempVideoPath) 118 const probe = await ffprobePromise(tempVideoPath)
119 119
120 const { resolution } = await isAudioFile(tempVideoPath, probe) 120 const { resolution } = await isAudioFile(tempVideoPath, probe)
121 ? await getVideoFileResolution(tempVideoPath) 121 ? { resolution: VideoResolution.H_NOVIDEO }
122 : { resolution: VideoResolution.H_NOVIDEO } 122 : await getVideoFileResolution(tempVideoPath)
123 123
124 const fps = await getVideoFileFPS(tempVideoPath, probe) 124 const fps = await getVideoFileFPS(tempVideoPath, probe)
125 const duration = await getDurationFromVideoFile(tempVideoPath, probe) 125 const duration = await getDurationFromVideoFile(tempVideoPath, probe)