aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils/videos
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-08-09 15:04:36 +0200
committerChocobozzz <me@florianbigard.com>2019-08-09 15:04:36 +0200
commite2600d8b261994abbbeb1ff921edaefd267fc122 (patch)
treefb19495cb4ba502324a2318c83cd4936b956fc1c /shared/extra-utils/videos
parent5bb2eb5660c87700bc70fe82219c1a84e7c7b177 (diff)
downloadPeerTube-e2600d8b261994abbbeb1ff921edaefd267fc122.tar.gz
PeerTube-e2600d8b261994abbbeb1ff921edaefd267fc122.tar.zst
PeerTube-e2600d8b261994abbbeb1ff921edaefd267fc122.zip
Add avatar to prune script
Diffstat (limited to 'shared/extra-utils/videos')
-rw-r--r--shared/extra-utils/videos/videos.ts6
1 files changed, 2 insertions, 4 deletions
diff --git a/shared/extra-utils/videos/videos.ts b/shared/extra-utils/videos/videos.ts
index 1533f37ab..75f7d58d7 100644
--- a/shared/extra-utils/videos/videos.ts
+++ b/shared/extra-utils/videos/videos.ts
@@ -19,7 +19,7 @@ import {
19import * as validator from 'validator' 19import * as validator from 'validator'
20import { VideoDetails, VideoPrivacy } from '../../models/videos' 20import { VideoDetails, VideoPrivacy } from '../../models/videos'
21import { VIDEO_CATEGORIES, VIDEO_LANGUAGES, loadLanguages, VIDEO_LICENCES, VIDEO_PRIVACIES } from '../../../server/initializers/constants' 21import { VIDEO_CATEGORIES, VIDEO_LANGUAGES, loadLanguages, VIDEO_LICENCES, VIDEO_PRIVACIES } from '../../../server/initializers/constants'
22import { dateIsValid, webtorrentAdd } from '../miscs/miscs' 22import { dateIsValid, webtorrentAdd, buildServerDirectory } from '../miscs/miscs'
23 23
24loadLanguages() 24loadLanguages()
25 25
@@ -308,10 +308,8 @@ async function checkVideoFilesWereRemoved (
308 join('redundancy', 'hls') 308 join('redundancy', 'hls')
309 ] 309 ]
310) { 310) {
311 const testDirectory = 'test' + serverNumber
312
313 for (const directory of directories) { 311 for (const directory of directories) {
314 const directoryPath = join(root(), testDirectory, directory) 312 const directoryPath = buildServerDirectory(serverNumber, directory)
315 313
316 const directoryExists = await pathExists(directoryPath) 314 const directoryExists = await pathExists(directoryPath)
317 if (directoryExists === false) continue 315 if (directoryExists === false) continue