fix
This commit is contained in:
parent
ba391cd962
commit
1b1aad6433
1 changed files with 3 additions and 8 deletions
11
youtube.sh
11
youtube.sh
|
@ -5,7 +5,7 @@ set -ex
|
|||
if [ "$1" == "--help" ] || [[ -z "$1" ]]
|
||||
then
|
||||
echo "bitte alles kleinschreiben"
|
||||
echo "bash ./youtube-dl.sh suche/NOSUCHE URL/SUCHE FORMAT vollbild/NOVOLLBILD"
|
||||
echo "bash ./youtube-dl.sh suche/NOSUCHE URL/SUCHE FORMAT"
|
||||
echo "Formate: [opus/m4a/video/hd/fullhd/4k]"
|
||||
exit 0
|
||||
fi
|
||||
|
@ -19,11 +19,6 @@ else
|
|||
format="$2"
|
||||
fi
|
||||
|
||||
if [ "$4" == "vollbild" ]
|
||||
then
|
||||
voll="-fs"
|
||||
fi
|
||||
|
||||
#read -p "Wie ist die URL/suche? : " 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
|
||||
|
@ -50,7 +45,7 @@ fi
|
|||
|
||||
if [ "$suche" == "suche" ]
|
||||
then
|
||||
youtube-dl "ytsearch:$url" -q --force-ipv4 $format -o- | mplayer $voll -cache 8192 -
|
||||
youtube-dl "ytsearch:$url" -q --force-ipv4 $format -o- | mplayer -fs -cache 8192 -
|
||||
else
|
||||
youtube-dl -q --force-ipv4 $format -o- $url | mplayer $voll -cache 8192 -
|
||||
youtube-dl -q --force-ipv4 $format -o- $url | mplayer -fs -cache 8192 -
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue