1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 02:39:33 +02:00

Guess if we need to generate the thumbnail for imports

This commit is contained in:
Chocobozzz 2021-02-12 09:37:01 +01:00
parent 06bee93748
commit e3b4c084cd
No known key found for this signature in database
GPG key ID: 583A612D890159BE
3 changed files with 6 additions and 19 deletions

View file

@ -218,8 +218,6 @@ async function addYoutubeDLImport (req: express.Request, res: express.Response)
const payload = {
type: 'youtube-dl' as 'youtube-dl',
videoImportId: videoImport.id,
generateThumbnail: !thumbnailModel,
generatePreview: !previewModel,
fileExt: `.${youtubeDLInfo.ext || 'mp4'}`
}
await JobQueue.Instance.createJobWithPromise({ type: 'video-import', payload })