diff options
Diffstat (limited to 'server/tools/peertube-import-videos.ts')
-rw-r--r-- | server/tools/peertube-import-videos.ts | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/server/tools/peertube-import-videos.ts b/server/tools/peertube-import-videos.ts index 87aec60ef..661a4cf35 100644 --- a/server/tools/peertube-import-videos.ts +++ b/server/tools/peertube-import-videos.ts | |||
@@ -1,12 +1,10 @@ | |||
1 | import { registerTSPaths } from '../helpers/register-ts-paths' | ||
2 | registerTSPaths() | ||
3 | |||
4 | import { program } from 'commander' | 1 | import { program } from 'commander' |
5 | import { accessSync, constants } from 'fs' | 2 | import { accessSync, constants } from 'fs' |
6 | import { remove } from 'fs-extra' | 3 | import { remove } from 'fs-extra' |
7 | import { join } from 'path' | 4 | import { join } from 'path' |
8 | import { sha256 } from '@shared/extra-utils' | 5 | import { YoutubeDLCLI, YoutubeDLInfo, YoutubeDLInfoBuilder } from '@server/helpers/youtube-dl' |
9 | import { wait } from '@shared/core-utils' | 6 | import { wait } from '@shared/core-utils' |
7 | import { sha256 } from '@shared/extra-utils' | ||
10 | import { doRequestAndSaveToFile } from '../helpers/requests' | 8 | import { doRequestAndSaveToFile } from '../helpers/requests' |
11 | import { | 9 | import { |
12 | assignToken, | 10 | assignToken, |
@@ -16,7 +14,7 @@ import { | |||
16 | getLogger, | 14 | getLogger, |
17 | getServerCredentials | 15 | getServerCredentials |
18 | } from './cli' | 16 | } from './cli' |
19 | import { YoutubeDLCLI, YoutubeDLInfo, YoutubeDLInfoBuilder } from '@server/helpers/youtube-dl' | 17 | |
20 | import prompt = require('prompt') | 18 | import prompt = require('prompt') |
21 | 19 | ||
22 | const processOptions = { | 20 | const processOptions = { |