diff options
author | bobzel <zzzman@gmail.com> | 2021-08-26 14:57:20 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2021-08-26 14:57:20 -0400 |
commit | df306cd0f25735747c6124a9a958f8118531fcfd (patch) | |
tree | ded15084809c9ca9d83b873e9ef38549e7cfc28f /src | |
parent | 702ba59ac0235e24121ffff9fcca7c35717867ab (diff) |
youtube
Diffstat (limited to 'src')
-rw-r--r-- | src/server/DashUploadUtils.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/DashUploadUtils.ts b/src/server/DashUploadUtils.ts index a617571ae..6f2b6e373 100644 --- a/src/server/DashUploadUtils.ts +++ b/src/server/DashUploadUtils.ts @@ -61,7 +61,7 @@ export namespace DashUploadUtils { export function uploadYoutube(videoId: string): Promise<Upload.FileResponse> { console.log("UPLOAD " + videoId); return new Promise<Upload.FileResponse<Upload.FileInformation>>((res, rej) => { - exec('/usr/local/bin/youtube-dl -o ' + (videoId + ".mp4") + ' https://www.youtube.com/watch?v=' + videoId + ' -f `/usr/local/bin/youtube-dl https://www.youtube.com/watch?v=' + videoId + ' -F | grep "(best)" | sed -e "s/ .*//"`', + exec('youtube-dl -o ' + (videoId + ".mp4") + ' https://www.youtube.com/watch?v=' + videoId + ' -f `youtube-dl https://www.youtube.com/watch?v=' + videoId + ' -F | grep "(best)" | sed -e "s/ .*//"`', (error: any, stdout: any, stderr: any) => { if (error) console.log(`error: ${error.message}`); else if (stderr) console.log(`stderr: ${stderr}`); |