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')