From e522e9dd0dbb6fc9d146b1df1596ac6d1d2d246a Mon Sep 17 00:00:00 2001 From: Simon Rieger Date: Thu, 28 Apr 2022 11:14:26 +0200 Subject: [PATCH] [+] Add interactive Command Line in youtube-downloder --- youtube.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/youtube.sh b/youtube.sh index 56ba680..a2d5551 100755 --- a/youtube.sh +++ b/youtube.sh @@ -2,7 +2,7 @@ set -ex -if [ "$1" == "--help" ] || [[ -z "$1" ]] +if [ "$1" == "--help" ] then echo "bash ./youtube-dl.sh URL FORMAT" echo "Formate: [opus/m4a/video/hd/fullhd/4k]" @@ -12,6 +12,9 @@ fi url="$1" format="$2" +[[ -z "${url}" ]] && read -p "URL: " url +[[ -z "${format}" ]] && read -p "Format [opus/m4a/video/hd/fullhd/4k]: " format + if [ "$format" == "opus" ] then format="--audio-format opus"