- const remoteStaticPath = videoCaption.getCaptionStaticPath()
- const destPath = join(FILES_CACHE.VIDEO_CAPTIONS.DIRECTORY, videoCaption.getCaptionName())
+ const remoteUrl = videoCaption.getFileUrl(video)
+ const destPath = join(FILES_CACHE.VIDEO_CAPTIONS.DIRECTORY, videoCaption.filename)
+
+ await doRequestAndSaveToFile(remoteUrl, destPath)