mirror of
https://github.com/snobu/destreamer.git
synced 2026-01-17 05:22:18 +00:00
Fix comment for bizarre escapes in access token for ffmpeg
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user