From 652c64165b3d8d1c5d5fc646c29e5cd1c82a3330 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 15 Apr 2020 14:15:44 +0200 Subject: Fix import captions test --- server/controllers/api/videos/import.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'server/controllers') 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) user }) - // Get video subtitles try { const subtitles = await getYoutubeDLSubs(targetUrl) + logger.info('Will create %s subtitles from youtube import %s.', subtitles.length, targetUrl) + for (const subtitle of subtitles) { const videoCaption = new VideoCaptionModel({ videoId: video.id, -- cgit v1.2.3