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/lib/object-storage/proxy.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'server/lib/object-storage/proxy.ts') diff --git a/server/lib/object-storage/proxy.ts b/server/lib/object-storage/proxy.ts index c782a8a25..c09a0d1b0 100644 --- a/server/lib/object-storage/proxy.ts +++ b/server/lib/object-storage/proxy.ts @@ -7,19 +7,19 @@ import { StreamReplacer } from '@server/helpers/stream-replacer' import { MStreamingPlaylist, MVideo } from '@server/types/models' import { HttpStatusCode } from '@shared/models' import { injectQueryToPlaylistUrls } from '../hls' -import { getHLSFileReadStream, getWebTorrentFileReadStream } from './videos' +import { getHLSFileReadStream, getWebVideoFileReadStream } from './videos' -export async function proxifyWebTorrentFile (options: { +export async function proxifyWebVideoFile (options: { req: express.Request res: express.Response filename: string }) { const { req, res, filename } = options - logger.debug('Proxifying WebTorrent file %s from object storage.', filename) + logger.debug('Proxifying Web Video file %s from object storage.', filename) try { - const { response: s3Response, stream } = await getWebTorrentFileReadStream({ + const { response: s3Response, stream } = await getWebVideoFileReadStream({ filename, rangeHeader: req.header('range') }) -- cgit v1.2.3