From 784e2ad5c34bcfef36a3f69e9e9acd7cbb3d6428 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 11 Jul 2023 09:21:13 +0200 Subject: Prefer web videos in favour of webtorrent --- server/helpers/custom-validators/metrics.ts | 3 ++- server/helpers/custom-validators/video-transcoding.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'server/helpers/custom-validators') diff --git a/server/helpers/custom-validators/metrics.ts b/server/helpers/custom-validators/metrics.ts index 533f8988d..44a863630 100644 --- a/server/helpers/custom-validators/metrics.ts +++ b/server/helpers/custom-validators/metrics.ts @@ -1,5 +1,6 @@ function isValidPlayerMode (value: any) { - return value === 'webtorrent' || value === 'p2p-media-loader' + // TODO: remove webtorrent in v7 + return value === 'webtorrent' || value === 'web-video' || value === 'p2p-media-loader' } // --------------------------------------------------------------------------- diff --git a/server/helpers/custom-validators/video-transcoding.ts b/server/helpers/custom-validators/video-transcoding.ts index cf792f996..220530de4 100644 --- a/server/helpers/custom-validators/video-transcoding.ts +++ b/server/helpers/custom-validators/video-transcoding.ts @@ -2,7 +2,7 @@ import { exists } from './misc' function isValidCreateTranscodingType (value: any) { return exists(value) && - (value === 'hls' || value === 'webtorrent') + (value === 'hls' || value === 'webtorrent' || value === 'web-video') // TODO: remove webtorrent in v7 } // --------------------------------------------------------------------------- -- cgit v1.2.3