diff options
author | Chocobozzz <me@florianbigard.com> | 2023-07-11 09:21:13 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-07-11 09:21:13 +0200 |
commit | 784e2ad5c34bcfef36a3f69e9e9acd7cbb3d6428 (patch) | |
tree | 29c46cfd6344065eb805680ed080cb05592ee1d4 /server/helpers/custom-validators | |
parent | c3030e944ad03c7fd7b5d668a2d88ff03e4cdf19 (diff) | |
download | PeerTube-784e2ad5c34bcfef36a3f69e9e9acd7cbb3d6428.tar.gz PeerTube-784e2ad5c34bcfef36a3f69e9e9acd7cbb3d6428.tar.zst PeerTube-784e2ad5c34bcfef36a3f69e9e9acd7cbb3d6428.zip |
Prefer web videos in favour of webtorrent
Diffstat (limited to 'server/helpers/custom-validators')
-rw-r--r-- | server/helpers/custom-validators/metrics.ts | 3 | ||||
-rw-r--r-- | server/helpers/custom-validators/video-transcoding.ts | 2 |
2 files changed, 3 insertions, 2 deletions
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 @@ | |||
1 | function isValidPlayerMode (value: any) { | 1 | function isValidPlayerMode (value: any) { |
2 | return value === 'webtorrent' || value === 'p2p-media-loader' | 2 | // TODO: remove webtorrent in v7 |
3 | return value === 'webtorrent' || value === 'web-video' || value === 'p2p-media-loader' | ||
3 | } | 4 | } |
4 | 5 | ||
5 | // --------------------------------------------------------------------------- | 6 | // --------------------------------------------------------------------------- |
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' | |||
2 | 2 | ||
3 | function isValidCreateTranscodingType (value: any) { | 3 | function isValidCreateTranscodingType (value: any) { |
4 | return exists(value) && | 4 | return exists(value) && |
5 | (value === 'hls' || value === 'webtorrent') | 5 | (value === 'hls' || value === 'webtorrent' || value === 'web-video') // TODO: remove webtorrent in v7 |
6 | } | 6 | } |
7 | 7 | ||
8 | // --------------------------------------------------------------------------- | 8 | // --------------------------------------------------------------------------- |