From 89aa3331106874266f6feeee7bff852da2c1727e Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 28 Jul 2023 11:07:03 +0200 Subject: Add ability to force transcoding --- shared/server-commands/videos/videos-command.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'shared/server-commands') diff --git a/shared/server-commands/videos/videos-command.ts b/shared/server-commands/videos/videos-command.ts index a58f1c545..4c3513ed4 100644 --- a/shared/server-commands/videos/videos-command.ts +++ b/shared/server-commands/videos/videos-command.ts @@ -775,19 +775,16 @@ export class VideosCommand extends AbstractCommand { }) } - runTranscoding (options: OverrideCommandOptions & { + runTranscoding (options: OverrideCommandOptions & VideoTranscodingCreate & { videoId: number | string - transcodingType: 'hls' | 'webtorrent' | 'web-video' }) { const path = '/api/v1/videos/' + options.videoId + '/transcoding' - const fields: VideoTranscodingCreate = pick(options, [ 'transcodingType' ]) - return this.postBodyRequest({ ...options, path, - fields, + fields: pick(options, [ 'transcodingType', 'forceTranscoding' ]), implicitToken: true, defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204 }) -- cgit v1.2.3