Update youtube-dl.sh
This commit is contained in:
parent
28bd87eb6d
commit
7e4a303404
1 changed files with 8 additions and 2 deletions
|
@ -1,15 +1,21 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
read -p "Wie ist die URL? : " url
|
read -p "Wie ist die URL? : " url
|
||||||
read -p "Soll ein Video heruntergeladen werden oder Audio? [audio/video] : " format
|
read -p "Soll ein Video heruntergeladen werden oder Audio? [audio/video/opus] : " format
|
||||||
read -p "Wo sollen die Dateien heruntergeladen werden? : " pfad
|
read -p "Wo sollen die Dateien heruntergeladen werden? : " pfad
|
||||||
|
|
||||||
if [ "$format" == "audio" ]
|
if [ "$format" == "opus" ]
|
||||||
then
|
then
|
||||||
format=251
|
format=251
|
||||||
|
elif [ "$format" == "audio" ]
|
||||||
|
then
|
||||||
|
format=140
|
||||||
else
|
else
|
||||||
|
#video
|
||||||
format=43
|
format=43
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
mkdir -p $pfad
|
||||||
|
|
||||||
cd $pfad
|
cd $pfad
|
||||||
youtube-dl -i -f $format $url
|
youtube-dl -i -f $format $url
|
||||||
|
|
Loading…
Reference in a new issue