aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--server/tools/import-videos.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/tools/import-videos.ts b/server/tools/import-videos.ts
index 268101b41..d29a2c6f3 100644
--- a/server/tools/import-videos.ts
+++ b/server/tools/import-videos.ts
@@ -148,7 +148,7 @@ async function uploadVideoOnPeerTube (videoInfo: any, videoPath: string, languag
148 try { 148 try {
149 await uploadVideo(program['url'], accessToken, videoAttributes) 149 await uploadVideo(program['url'], accessToken, videoAttributes)
150 } catch (err) { 150 } catch (err) {
151 if (err.message.indexOf('401')) { 151 if (err.message.indexOf('401') !== -1) {
152 console.log('Got 401 Unauthorized, token may have expired, renewing token and retry.') 152 console.log('Got 401 Unauthorized, token may have expired, renewing token and retry.')
153 153
154 const res = await login(program['url'], client, user) 154 const res = await login(program['url'], client, user)