fix
This commit is contained in:
parent
ff5f8259e1
commit
7febc2bb08
2 changed files with 11 additions and 5 deletions
|
@ -41,4 +41,4 @@ fi
|
|||
mkdir -p $pfad
|
||||
|
||||
cd $pfad
|
||||
youtube-dl -i --socket-timeout 10000 $format $url
|
||||
youtube-dl -i --socket-timeout 10000 --force-ipv4 $format $url
|
||||
|
|
14
youtube.sh
14
youtube.sh
|
@ -16,25 +16,31 @@ then
|
|||
voll="-fs"
|
||||
fi
|
||||
|
||||
read -p "Soll ein Video heruntergeladen werden oder Audio? [opus/audio/video/BEST/4k] : " format
|
||||
read -p "Soll ein Video heruntergeladen werden oder Audio? [opus/m4a/video/hd/fullhd/4k] : " format
|
||||
|
||||
if [ "$format" == "opus" ]
|
||||
then
|
||||
format="-f 251"
|
||||
elif [ "$format" == "audio" ]
|
||||
elif [ "$format" == "m4a" ]
|
||||
then
|
||||
format="-f 140"
|
||||
elif [ "$format" == "video" ]
|
||||
then
|
||||
format="-f 43"
|
||||
elif [ "$format" == "4k" ]
|
||||
elif [ "$format" == "hd" ]
|
||||
then
|
||||
format="-f 247+251"
|
||||
elif [ "$format" == "fullhd" ]
|
||||
then
|
||||
format="-f 303+251"
|
||||
elif [ "$format" == "4k" ]
|
||||
then
|
||||
format="-f 315+251"
|
||||
fi
|
||||
|
||||
if [ "$suche" == "suche" ]
|
||||
then
|
||||
youtube-dl "ytsearch:$wort" -q $format -o- | mplayer $voll -cache 8192 -
|
||||
else
|
||||
youtube-dl -q $format -o- $url | mplayer $voll -cache 8192 -
|
||||
youtube-dl -q --force-ipv4 $format -o- $url | mplayer $voll -cache 8192 -
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue