aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/shared/videos.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/shared/videos.ts')
-rw-r--r--server/tests/shared/videos.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/server/tests/shared/videos.ts b/server/tests/shared/videos.ts
index 0bd161820..6cba5b14c 100644
--- a/server/tests/shared/videos.ts
+++ b/server/tests/shared/videos.ts
@@ -215,22 +215,22 @@ async function checkVideoFilesWereRemoved (options: {
215}) { 215}) {
216 const { video, server, captions = [], onlyVideoFiles = false } = options 216 const { video, server, captions = [], onlyVideoFiles = false } = options
217 217
218 const webtorrentFiles = video.files || [] 218 const webVideoFiles = video.files || []
219 const hlsFiles = video.streamingPlaylists[0]?.files || [] 219 const hlsFiles = video.streamingPlaylists[0]?.files || []
220 220
221 const thumbnailName = basename(video.thumbnailPath) 221 const thumbnailName = basename(video.thumbnailPath)
222 const previewName = basename(video.previewPath) 222 const previewName = basename(video.previewPath)
223 223
224 const torrentNames = webtorrentFiles.concat(hlsFiles).map(f => basename(f.torrentUrl)) 224 const torrentNames = webVideoFiles.concat(hlsFiles).map(f => basename(f.torrentUrl))
225 225
226 const captionNames = captions.map(c => basename(c.captionPath)) 226 const captionNames = captions.map(c => basename(c.captionPath))
227 227
228 const webtorrentFilenames = webtorrentFiles.map(f => basename(f.fileUrl)) 228 const webVideoFilenames = webVideoFiles.map(f => basename(f.fileUrl))
229 const hlsFilenames = hlsFiles.map(f => basename(f.fileUrl)) 229 const hlsFilenames = hlsFiles.map(f => basename(f.fileUrl))
230 230
231 let directories: { [ directory: string ]: string[] } = { 231 let directories: { [ directory: string ]: string[] } = {
232 videos: webtorrentFilenames, 232 videos: webVideoFilenames,
233 redundancy: webtorrentFilenames, 233 redundancy: webVideoFilenames,
234 [join('playlists', 'hls')]: hlsFilenames, 234 [join('playlists', 'hls')]: hlsFilenames,
235 [join('redundancy', 'hls')]: hlsFilenames 235 [join('redundancy', 'hls')]: hlsFilenames
236 } 236 }