diff options
author | Florent <florent.git@zeteo.me> | 2022-08-06 15:20:43 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2022-08-08 08:25:36 +0200 |
commit | 7e0f50d6e0c7dc583d40e196c283eb20dc386ae6 (patch) | |
tree | a44a68f32dafb3ff3b4a6b1a88f7718423d676b9 /server/tools/peertube-import-videos.ts | |
parent | 2c9c6e653e896b9815b360bd566a657999fffb31 (diff) | |
download | PeerTube-7e0f50d6e0c7dc583d40e196c283eb20dc386ae6.tar.gz PeerTube-7e0f50d6e0c7dc583d40e196c283eb20dc386ae6.tar.zst PeerTube-7e0f50d6e0c7dc583d40e196c283eb20dc386ae6.zip |
Use single quotes in server/ and update eslint rules
Diffstat (limited to 'server/tools/peertube-import-videos.ts')
-rw-r--r-- | server/tools/peertube-import-videos.ts | 4 |
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 | ||
43 | const options = command.opts() | 43 | const 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 | ||