diff options
author | bobzel <zzzman@gmail.com> | 2022-09-22 14:22:24 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2022-09-22 14:22:24 -0400 |
commit | 2030dda471e1b7a0bbf16af993c496b4b9d8983a (patch) | |
tree | 7e4d77cedf4c114c88de41edbd5168bef49e47a6 | |
parent | c6b0c2b7241f5725408f8e389a90ad79fab5c4aa (diff) |
went back to simple mp4 request for youtube videos. audio wasn't coming through otherwise which is weird because it used to work.
-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 2fce90f20..08dfc0287 100644 --- a/src/server/DashUploadUtils.ts +++ b/src/server/DashUploadUtils.ts @@ -128,7 +128,7 @@ export namespace DashUploadUtils { res(resolveExistingFile(name, finalPath, Directory.videos, 'video/mp4', duration, undefined)); }); } else { - exec(`youtube-dl -o ${path} "https://www.youtube.com/watch?v=${videoId}" -f "mp4[filesize<5M]/bestvideo[filesize<5M]+bestaudio/bestvideo+bestaudio"`, (error: any, stdout: any, stderr: any) => { + exec(`youtube-dl -o ${path} "https://www.youtube.com/watch?v=${videoId}" -f "mp4"`, (error: any, stdout: any, stderr: any) => { if (error) { console.log(`error: Error: ${error.message}`); res({ |