1
0
mirror of https://github.com/snobu/destreamer.git synced 2026-02-23 23:08:23 +00:00

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() ffmpeg()
.input(video.playbackUrl) .input(video.playbackUrl)
.inputOption([ .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}` '-headers', `Authorization:\ Bearer\ ${session.AccessToken}`
]) ])
.format('mp4') .format('mp4')