aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2022-09-22 14:22:24 -0400
committerbobzel <zzzman@gmail.com>2022-09-22 14:22:24 -0400
commit2030dda471e1b7a0bbf16af993c496b4b9d8983a (patch)
tree7e4d77cedf4c114c88de41edbd5168bef49e47a6 /src
parentc6b0c2b7241f5725408f8e389a90ad79fab5c4aa (diff)
went back to simple mp4 request for youtube videos. audio wasn't coming through otherwise which is weird because it used to work.
Diffstat (limited to 'src')
-rw-r--r--src/server/DashUploadUtils.ts2
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({