diff options
| author | ilotterytea <iltsu@alright.party> | 2025-03-25 14:46:52 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-03-25 14:46:52 +0500 |
| commit | 7dee6883e21e2faa03226a955d0a326071595f42 (patch) | |
| tree | 809b705a147485be350df246fe006b05bece8512 | |
| parent | 10dcee56bdde2cb0369141fc60e65257c63822a2 (diff) | |
upd: download worst quality
| -rw-r--r-- | public/upload.php | 4 |
1 files 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'], |
