aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api
diff options
context:
space:
mode:
Diffstat (limited to 'server/controllers/api')
-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,