aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tools/peertube-import-videos.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tools/peertube-import-videos.ts')
-rw-r--r--server/tools/peertube-import-videos.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/tools/peertube-import-videos.ts b/server/tools/peertube-import-videos.ts
index 661a4cf35..e2f80c703 100644
--- a/server/tools/peertube-import-videos.ts
+++ b/server/tools/peertube-import-videos.ts
@@ -37,7 +37,7 @@ command
37 .option('--last <last>', 'Process last n elements of returned playlist') 37 .option('--last <last>', 'Process last n elements of returned playlist')
38 .option('--wait-interval <waitInterval>', 'Duration between two video imports (in seconds)', convertIntoMs) 38 .option('--wait-interval <waitInterval>', 'Duration between two video imports (in seconds)', convertIntoMs)
39 .option('-T, --tmpdir <tmpdir>', 'Working directory', __dirname) 39 .option('-T, --tmpdir <tmpdir>', 'Working directory', __dirname)
40 .usage("[global options] [ -- youtube-dl options]") 40 .usage('[global options] [ -- youtube-dl options]')
41 .parse(process.argv) 41 .parse(process.argv)
42 42
43const options = command.opts() 43const options = command.opts()
@@ -97,7 +97,7 @@ async function run (url: string, username: string, password: string) {
97 for (const [ index, info ] of infoArray.entries()) { 97 for (const [ index, info ] of infoArray.entries()) {
98 try { 98 try {
99 if (index > 0 && options.waitInterval && !skipInterval) { 99 if (index > 0 && options.waitInterval && !skipInterval) {
100 log.info("Wait for %d seconds before continuing.", options.waitInterval / 1000) 100 log.info('Wait for %d seconds before continuing.', options.waitInterval / 1000)
101 await wait(options.waitInterval) 101 await wait(options.waitInterval)
102 } 102 }
103 103