Fix comment for bizarre escapes in access token for ffmpeg

This commit is contained in:
snobu 2020-04-10 11:27:08 +03:00
parent 2afe2d4f1c
commit db950e8f80

View file

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