From db950e8f809c7965e298eb505d18c02e9e1b1201 Mon Sep 17 00:00:00 2001 From: snobu Date: Fri, 10 Apr 2020 11:27:08 +0300 Subject: [PATCH] Fix comment for bizarre escapes in access token for ffmpeg --- destreamer.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/destreamer.ts b/destreamer.ts index e671d46..c4211b3 100644 --- a/destreamer.ts +++ b/destreamer.ts @@ -186,6 +186,9 @@ async function downloadVideo(videoUrls: string[], outputDirectory: string, sessi ffmpeg() .input(video.playbackUrl) .inputOption([ + // Never remove those "useless" escapes or ffmpeg will not + // pick up the header correctly + // eslint-disable-next-line no-useless-escape '-headers', `Authorization:\ Bearer\ ${session.AccessToken}` ]) .format('mp4')