diff options
author | Chocobozzz <me@florianbigard.com> | 2022-10-31 11:45:08 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-10-31 13:30:39 +0100 |
commit | 6740b6428be1c27e9ad728eede7c428d1e2e9f47 (patch) | |
tree | cf5c919cecd3b1a961002fb7ceee72ff3d9aa478 /server/controllers/api/videos | |
parent | f746622be455309112d858105992b2fa0b01af90 (diff) | |
download | PeerTube-6740b6428be1c27e9ad728eede7c428d1e2e9f47.tar.gz PeerTube-6740b6428be1c27e9ad728eede7c428d1e2e9f47.tar.zst PeerTube-6740b6428be1c27e9ad728eede7c428d1e2e9f47.zip |
Fix transcoding failure when importing a video
Diffstat (limited to 'server/controllers/api/videos')
-rw-r--r-- | server/controllers/api/videos/import.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/controllers/api/videos/import.ts b/server/controllers/api/videos/import.ts index 9d7b0260b..6a50aaf4e 100644 --- a/server/controllers/api/videos/import.ts +++ b/server/controllers/api/videos/import.ts | |||
@@ -3,7 +3,7 @@ import { move, readFile } from 'fs-extra' | |||
3 | import { decode } from 'magnet-uri' | 3 | import { decode } from 'magnet-uri' |
4 | import parseTorrent, { Instance } from 'parse-torrent' | 4 | import parseTorrent, { Instance } from 'parse-torrent' |
5 | import { join } from 'path' | 5 | import { join } from 'path' |
6 | import { buildYoutubeDLImport, buildVideoFromImport, insertFromImportIntoDB, YoutubeDlImportError } from '@server/lib/video-import' | 6 | import { buildYoutubeDLImport, buildVideoFromImport, insertFromImportIntoDB, YoutubeDlImportError } from '@server/lib/video-pre-import' |
7 | import { MThumbnail, MVideoThumbnail } from '@server/types/models' | 7 | import { MThumbnail, MVideoThumbnail } from '@server/types/models' |
8 | import { HttpStatusCode, ServerErrorCode, ThumbnailType, VideoImportCreate, VideoImportPayload, VideoImportState } from '@shared/models' | 8 | import { HttpStatusCode, ServerErrorCode, ThumbnailType, VideoImportCreate, VideoImportPayload, VideoImportState } from '@shared/models' |
9 | import { auditLoggerFactory, getAuditIdFromRes, VideoImportAuditView } from '../../../helpers/audit-logger' | 9 | import { auditLoggerFactory, getAuditIdFromRes, VideoImportAuditView } from '../../../helpers/audit-logger' |