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
|
||||
read -p "Wie ist die URL? : " url
|
||||
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" ]
|
||||
then
|
||||
|
@ -20,11 +27,14 @@ then
|
|||
elif [ "$format" == "video" ]
|
||||
then
|
||||
format="-f 43"
|
||||
elif [ "$format" == "60k" ]
|
||||
then
|
||||
format="-f 303+251"
|
||||
fi
|
||||
|
||||
if [ "$suche" == "suche" ]
|
||||
then
|
||||
youtube-dl "ytsearch:$wort" -q $format -o- | mplayer -fs -cache 8192 -
|
||||
youtube-dl "ytsearch:$wort" -q $format -o- | mplayer $voll -cache 8192 -
|
||||
else
|
||||
youtube-dl -q $format -o- $url | mplayer -fs -cache 8192 -
|
||||
youtube-dl -q $format -o- $url | mplayer $voll -cache 8192 -
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue