diff options
Diffstat (limited to 'server/lib/video-pre-import.ts')
-rw-r--r-- | server/lib/video-pre-import.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/video-pre-import.ts b/server/lib/video-pre-import.ts index 0ac667ba3..ef9c38731 100644 --- a/server/lib/video-pre-import.ts +++ b/server/lib/video-pre-import.ts | |||
@@ -29,7 +29,7 @@ import { | |||
29 | } from '@server/types/models' | 29 | } from '@server/types/models' |
30 | import { ThumbnailType, VideoImportCreate, VideoImportPayload, VideoImportState, VideoPrivacy, VideoState } from '@shared/models' | 30 | import { ThumbnailType, VideoImportCreate, VideoImportPayload, VideoImportState, VideoPrivacy, VideoState } from '@shared/models' |
31 | import { getLocalVideoActivityPubUrl } from './activitypub/url' | 31 | import { getLocalVideoActivityPubUrl } from './activitypub/url' |
32 | import { updateVideoMiniatureFromExisting, updateVideoMiniatureFromUrl } from './thumbnail' | 32 | import { updateLocalVideoMiniatureFromExisting, updateVideoMiniatureFromUrl } from './thumbnail' |
33 | import { VideoPasswordModel } from '@server/models/video/video-password' | 33 | import { VideoPasswordModel } from '@server/models/video/video-password' |
34 | 34 | ||
35 | class YoutubeDlImportError extends Error { | 35 | class YoutubeDlImportError extends Error { |
@@ -256,7 +256,7 @@ async function forgeThumbnail ({ inputPath, video, downloadUrl, type }: { | |||
256 | type: ThumbnailType | 256 | type: ThumbnailType |
257 | }): Promise<MThumbnail> { | 257 | }): Promise<MThumbnail> { |
258 | if (inputPath) { | 258 | if (inputPath) { |
259 | return updateVideoMiniatureFromExisting({ | 259 | return updateLocalVideoMiniatureFromExisting({ |
260 | inputPath, | 260 | inputPath, |
261 | video, | 261 | video, |
262 | type, | 262 | type, |