Fix comment for bizarre escapes in access token for ffmpeg
This commit is contained in:
parent
2afe2d4f1c
commit
db950e8f80
1 changed files with 3 additions and 0 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue