From 1aff92cfef9a38282ff894bb159d2ffb2e08fb91 Mon Sep 17 00:00:00 2001 From: Tahinli <96421894+Tahinli@users.noreply.github.com> Date: Thu, 29 Dec 2022 14:37:03 +0300 Subject: [PATCH] Add files via upload --- ytDownloader.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 ytDownloader.sh diff --git a/ytDownloader.sh b/ytDownloader.sh new file mode 100644 index 0000000..48e9c88 --- /dev/null +++ b/ytDownloader.sh @@ -0,0 +1,18 @@ +echo -e 'Gimme link' +read selection +echo -e 'What do you want from video\n\t1) Best MP4\n\t2) Best MP3\n\t3) Both' +read menu + +case $menu in +1) + yt-dlp -f bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best $selection + ;; + +2) + yt-dlp -f 'ba' -x --audio-format mp3 $selection + ;; +3) + yt-dlp -f bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best $selection + yt-dlp -f 'ba' -x --audio-format mp3 $selection + ;; +esac