aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/videos
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-04-15 14:15:44 +0200
committerChocobozzz <me@florianbigard.com>2020-04-15 14:15:44 +0200
commit652c64165b3d8d1c5d5fc646c29e5cd1c82a3330 (patch)
tree03958b1ca6ace8781e23c8b0210a42ae00828bf2 /server/controllers/api/videos
parentba6e9e8f1df29a7f355636d48c2a608bc4cb54ec (diff)
downloadPeerTube-652c64165b3d8d1c5d5fc646c29e5cd1c82a3330.tar.gz
PeerTube-652c64165b3d8d1c5d5fc646c29e5cd1c82a3330.tar.zst
PeerTube-652c64165b3d8d1c5d5fc646c29e5cd1c82a3330.zip
Fix import captions test
Diffstat (limited to 'server/controllers/api/videos')
-rw-r--r--server/controllers/api/videos/import.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/controllers/api/videos/import.ts b/server/controllers/api/videos/import.ts
index e9b9d68d7..fb9d73140 100644
--- a/server/controllers/api/videos/import.ts
+++ b/server/controllers/api/videos/import.ts
@@ -172,11 +172,12 @@ async function addYoutubeDLImport (req: express.Request, res: express.Response)
172 user 172 user
173 }) 173 })
174 174
175
176 // Get video subtitles 175 // Get video subtitles
177 try { 176 try {
178 const subtitles = await getYoutubeDLSubs(targetUrl) 177 const subtitles = await getYoutubeDLSubs(targetUrl)
179 178
179 logger.info('Will create %s subtitles from youtube import %s.', subtitles.length, targetUrl)
180
180 for (const subtitle of subtitles) { 181 for (const subtitle of subtitles) {
181 const videoCaption = new VideoCaptionModel({ 182 const videoCaption = new VideoCaptionModel({
182 videoId: video.id, 183 videoId: video.id,