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:
@@ -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')
|
||||||
|
|||||||
Reference in New Issue
Block a user