diff --git a/youtube-dl.sh b/youtube-dl.sh index 9b87fb7..7d1ef22 100755 --- a/youtube-dl.sh +++ b/youtube-dl.sh @@ -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 diff --git a/youtube.sh b/youtube.sh index 2bd3d4d..7e7de70 100755 --- a/youtube.sh +++ b/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