From 9ab330b90decf4edf152ff8e1d2948c065766b2c Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 19 Oct 2022 10:43:53 +0200 Subject: Use private ACL for private videos in s3 --- server/helpers/webtorrent.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/helpers') diff --git a/server/helpers/webtorrent.ts b/server/helpers/webtorrent.ts index 6d87c74f7..b458e86d2 100644 --- a/server/helpers/webtorrent.ts +++ b/server/helpers/webtorrent.ts @@ -165,7 +165,7 @@ function generateMagnetUri ( const xs = videoFile.getTorrentUrl() const announce = trackerUrls - let urlList = video.requiresAuth(video.uuid) + let urlList = video.hasPrivateStaticPath() ? [] : [ videoFile.getFileUrl(video) ] @@ -243,7 +243,7 @@ function buildAnnounceList () { } function buildUrlList (video: MVideo, videoFile: MVideoFile) { - if (video.requiresAuth(video.uuid)) return [] + if (video.hasPrivateStaticPath()) return [] return [ videoFile.getFileUrl(video) ] } -- cgit v1.2.3