fix
This commit is contained in:
parent
6fc6666da5
commit
a5b4a8162d
1 changed files with 15 additions and 4 deletions
|
@ -2,9 +2,20 @@
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
read -p "Wie ist die URL? : " url
|
if [ "$1" == "--help" ] || [[ -z "$1" ]]
|
||||||
read -p "Wo sollen die Dateien heruntergeladen werden? : " pfad
|
then
|
||||||
read -p "Soll ein Video heruntergeladen werden oder Audio? [opus/audio/video/BEST/4k] : " format
|
echo "bash ./youtube-dl.sh URL PFAD FORMAT"
|
||||||
|
echo "Formate: opus/audio/video/BEST/4k"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
url="$1"
|
||||||
|
pfad="$2"
|
||||||
|
format="$3"
|
||||||
|
|
||||||
|
#read -p "Wie ist die URL? : " url
|
||||||
|
#read -p "Wo sollen die Dateien heruntergeladen werden? : " pfad
|
||||||
|
#read -p "Soll ein Video heruntergeladen werden oder Audio? [opus/audio/video/BEST/4k] : " format
|
||||||
|
|
||||||
if [ "$format" == "opus" ]
|
if [ "$format" == "opus" ]
|
||||||
then
|
then
|
||||||
|
@ -23,4 +34,4 @@ fi
|
||||||
mkdir -p $pfad
|
mkdir -p $pfad
|
||||||
|
|
||||||
cd $pfad
|
cd $pfad
|
||||||
youtube-dl -i $format $url
|
youtube-dl -i --socket-timeout 10000 $format $url
|
||||||
|
|
Loading…
Reference in a new issue