diff options
Diffstat (limited to 'server/helpers')
-rw-r--r-- | server/helpers/webtorrent.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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 ( | |||
165 | const xs = videoFile.getTorrentUrl() | 165 | const xs = videoFile.getTorrentUrl() |
166 | const announce = trackerUrls | 166 | const announce = trackerUrls |
167 | 167 | ||
168 | let urlList = video.requiresAuth(video.uuid) | 168 | let urlList = video.hasPrivateStaticPath() |
169 | ? [] | 169 | ? [] |
170 | : [ videoFile.getFileUrl(video) ] | 170 | : [ videoFile.getFileUrl(video) ] |
171 | 171 | ||
@@ -243,7 +243,7 @@ function buildAnnounceList () { | |||
243 | } | 243 | } |
244 | 244 | ||
245 | function buildUrlList (video: MVideo, videoFile: MVideoFile) { | 245 | function buildUrlList (video: MVideo, videoFile: MVideoFile) { |
246 | if (video.requiresAuth(video.uuid)) return [] | 246 | if (video.hasPrivateStaticPath()) return [] |
247 | 247 | ||
248 | return [ videoFile.getFileUrl(video) ] | 248 | return [ videoFile.getFileUrl(video) ] |
249 | } | 249 | } |