X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Fcreate-transcoding-job.ts;h=78eb455aa1eb39bec2852f68d31deb647acbb62c;hb=890666733f3f2d0f9f1f8cb89c54fee555ac5715;hp=1312e8952924e93ab14749894c235426af0d77d5;hpb=8dc8a34ee8428e7657414115d1c137592efa174d;p=github%2FChocobozzz%2FPeerTube.git diff --git a/scripts/create-transcoding-job.ts b/scripts/create-transcoding-job.ts index 1312e8952..78eb455aa 100755 --- a/scripts/create-transcoding-job.ts +++ b/scripts/create-transcoding-job.ts @@ -3,7 +3,7 @@ registerTSPaths() import * as program from 'commander' import { VideoModel } from '../server/models/video/video' -import { initDatabaseModels } from '../server/initializers' +import { initDatabaseModels } from '../server/initializers/database' import { JobQueue } from '../server/lib/job-queue' import { computeResolutionsToTranscode } from '@server/helpers/ffmpeg-utils' import { VideoTranscodingPayload } from '@shared/models' @@ -43,7 +43,7 @@ async function run () { if (program.generateHls) { const resolutionsEnabled = program.resolution ? [ program.resolution ] - : computeResolutionsToTranscode(videoFileResolution).concat([ videoFileResolution ]) + : computeResolutionsToTranscode(videoFileResolution, 'vod').concat([ videoFileResolution ]) for (const resolution of resolutionsEnabled) { dataInput.push({