fix
This commit is contained in:
parent
0678a17bbe
commit
f4d3de8b85
1 changed files with 1 additions and 11 deletions
|
@ -10,13 +10,7 @@ exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
url="$1"
|
url="$1"
|
||||||
pfad="$2"
|
format="$2"
|
||||||
[[ -z "${pfad}" ]] && pfad="."
|
|
||||||
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/m4a/video/hd/fullhd/4k] : " format
|
|
||||||
|
|
||||||
if [ "$format" == "opus" ]
|
if [ "$format" == "opus" ]
|
||||||
then
|
then
|
||||||
|
@ -38,8 +32,4 @@ then
|
||||||
format="-f 315+251"
|
format="-f 315+251"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
mkdir -p $pfad
|
|
||||||
|
|
||||||
cd $pfad
|
|
||||||
youtube-dl -i -c --socket-timeout 10000 --force-ipv4 --restrict-filenames $format $url
|
youtube-dl -i -c --socket-timeout 10000 --force-ipv4 --restrict-filenames $format $url
|
||||||
|
|
Loading…
Reference in a new issue