diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-16 09:47:51 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-20 15:27:18 +0200 |
commit | 254d3579f5338f5fd775c17d15cdfc37078bcfb4 (patch) | |
tree | eaeb13fda16c16e98cd6991d202b0ca6a4cbdb63 /server/tools/peertube-import-videos.ts | |
parent | 89d241a79c262b9775c233b73cff080043ebb5e6 (diff) | |
download | PeerTube-254d3579f5338f5fd775c17d15cdfc37078bcfb4.tar.gz PeerTube-254d3579f5338f5fd775c17d15cdfc37078bcfb4.tar.zst PeerTube-254d3579f5338f5fd775c17d15cdfc37078bcfb4.zip |
Use an object to represent a server
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 caf1facc7..52aae3d2c 100644 --- a/server/tools/peertube-import-videos.ts +++ b/server/tools/peertube-import-videos.ts | |||
@@ -20,7 +20,7 @@ import { | |||
20 | getLogger, | 20 | getLogger, |
21 | getServerCredentials | 21 | getServerCredentials |
22 | } from './cli' | 22 | } from './cli' |
23 | import { ServerInfo } from '@shared/extra-utils' | 23 | import { PeerTubeServer } from '@shared/extra-utils' |
24 | 24 | ||
25 | const processOptions = { | 25 | const processOptions = { |
26 | maxBuffer: Infinity | 26 | maxBuffer: Infinity |
@@ -270,7 +270,7 @@ async function uploadVideoOnPeerTube (parameters: { | |||
270 | 270 | ||
271 | /* ---------------------------------------------------------- */ | 271 | /* ---------------------------------------------------------- */ |
272 | 272 | ||
273 | async function getCategory (server: ServerInfo, categories: string[]) { | 273 | async function getCategory (server: PeerTubeServer, categories: string[]) { |
274 | if (!categories) return undefined | 274 | if (!categories) return undefined |
275 | 275 | ||
276 | const categoryString = categories[0] | 276 | const categoryString = categories[0] |