summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--public/upload.php4
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'],