From ad5db1044c8599eaaaa2a578b350777ae996b068 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 18 Nov 2021 14:35:08 +0100 Subject: Add ability to run transcoding jobs --- server/helpers/custom-validators/video-transcoding.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 server/helpers/custom-validators/video-transcoding.ts (limited to 'server/helpers/custom-validators') diff --git a/server/helpers/custom-validators/video-transcoding.ts b/server/helpers/custom-validators/video-transcoding.ts new file mode 100644 index 000000000..cf792f996 --- /dev/null +++ b/server/helpers/custom-validators/video-transcoding.ts @@ -0,0 +1,12 @@ +import { exists } from './misc' + +function isValidCreateTranscodingType (value: any) { + return exists(value) && + (value === 'hls' || value === 'webtorrent') +} + +// --------------------------------------------------------------------------- + +export { + isValidCreateTranscodingType +} -- cgit v1.2.3