From 7dee6883e21e2faa03226a955d0a326071595f42 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Tue, 25 Mar 2025 14:46:52 +0500 Subject: upd: download worst quality --- public/upload.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/upload.php b/public/upload.php index 52e59b7..0a4f871 100644 --- a/public/upload.php +++ b/public/upload.php @@ -19,7 +19,7 @@ try { if (FILEEXT_ENABLED && isset($url) && !empty($url)) { $output = []; - exec('yt-dlp --get-filename -o "%(filesize_approx)s %(ext)s %(duration)s" ' . escapeshellarg($url) . '', $output); + exec('yt-dlp -f "worst" --get-filename -o "%(filesize_approx)s %(ext)s %(duration)s" ' . escapeshellarg($url) . '', $output); if (empty($output)) { throw new RuntimeException('Bad URL'); } @@ -87,7 +87,7 @@ try { $output = []; exec(sprintf( - 'yt-dlp -o "%s/%s.%s" %s 2>&1', + 'yt-dlp -f "worst" -o "%s/%s.%s" %s 2>&1', FILE_DIRECTORY, $file_id, $file_data['extension'], -- cgit v1.2.3