youtube-fix
This commit is contained in:
parent
7fcde70d83
commit
ff76b7322b
1 changed files with 13 additions and 3 deletions
16
youtube.sh
16
youtube.sh
|
@ -9,7 +9,14 @@ read -p "Wie heißt das Stichwort? : " wort
|
||||||
else
|
else
|
||||||
read -p "Wie ist die URL? : " url
|
read -p "Wie ist die URL? : " url
|
||||||
fi
|
fi
|
||||||
read -p "Soll ein Video heruntergeladen werden oder Audio? [opus/audio/video/BEST] : " format
|
|
||||||
|
read -p "Vollbild? : [Y/n] " vollbild
|
||||||
|
if [ "$vollbild" != "n" ]
|
||||||
|
then
|
||||||
|
voll="-fs"
|
||||||
|
fi
|
||||||
|
|
||||||
|
read -p "Soll ein Video heruntergeladen werden oder Audio? [opus/audio/video/BEST/60k] : " format
|
||||||
|
|
||||||
if [ "$format" == "opus" ]
|
if [ "$format" == "opus" ]
|
||||||
then
|
then
|
||||||
|
@ -20,11 +27,14 @@ then
|
||||||
elif [ "$format" == "video" ]
|
elif [ "$format" == "video" ]
|
||||||
then
|
then
|
||||||
format="-f 43"
|
format="-f 43"
|
||||||
|
elif [ "$format" == "60k" ]
|
||||||
|
then
|
||||||
|
format="-f 303+251"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$suche" == "suche" ]
|
if [ "$suche" == "suche" ]
|
||||||
then
|
then
|
||||||
youtube-dl "ytsearch:$wort" -q $format -o- | mplayer -fs -cache 8192 -
|
youtube-dl "ytsearch:$wort" -q $format -o- | mplayer $voll -cache 8192 -
|
||||||
else
|
else
|
||||||
youtube-dl -q $format -o- $url | mplayer -fs -cache 8192 -
|
youtube-dl -q $format -o- $url | mplayer $voll -cache 8192 -
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue