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/plugins/plugin-helpers-builder.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'server/lib/plugins') diff --git a/server/lib/plugins/plugin-helpers-builder.ts b/server/lib/plugins/plugin-helpers-builder.ts index d235f52c0..b4e3eece4 100644 --- a/server/lib/plugins/plugin-helpers-builder.ts +++ b/server/lib/plugins/plugin-helpers-builder.ts @@ -104,7 +104,7 @@ function buildVideosHelpers () { const video = await VideoModel.loadFull(id) if (!video) return undefined - const webtorrentVideoFiles = (video.VideoFiles || []).map(f => ({ + const webVideoFiles = (video.VideoFiles || []).map(f => ({ path: f.storage === VideoStorage.FILE_SYSTEM ? VideoPathManager.Instance.getFSVideoFileOutputPath(video, f) : null, @@ -138,8 +138,12 @@ function buildVideosHelpers () { })) return { - webtorrent: { - videoFiles: webtorrentVideoFiles + webtorrent: { // TODO: remove in v7 + videoFiles: webVideoFiles + }, + + webVideo: { + videoFiles: webVideoFiles }, hls: { -- cgit v1.2.3