From 65ecc54a05a250135f45dc2baf66215afed17a43 Mon Sep 17 00:00:00 2001 From: snobu Date: Fri, 10 Apr 2020 13:31:44 +0300 Subject: [PATCH] Fix comment --- destreamer.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/destreamer.ts b/destreamer.ts index 7f0d4e1..cdf6931 100644 --- a/destreamer.ts +++ b/destreamer.ts @@ -191,7 +191,12 @@ async function downloadVideo(videoUrls: string[], outputDirectory: string, sessi // console.log(`Download finished: ${outputPath}`); // }); - // We probably need a way to be deterministic about how we locate that ffmpeg-bar wrapper, npx maybe? + + // We probably need a way to be deterministic about + // how we locate that ffmpeg-bar wrapper, npx maybe? + // Do not remove those "useless" escapes or ffmpeg will + // not pick up the header correctly. + // eslint-disable-next-line no-useless-escape let cmd = `node_modules/.bin/ffmpeg-bar -headers "Authorization:\ Bearer\ ${session.AccessToken}" -i "${video.playbackUrl}" -y "${outputPath}"`; execSync(cmd, {stdio: 'inherit'}); console.info(`Download finished: ${outputPath}`);