diff --git a/youtube-vlc.sh b/youtube-vlc.sh index ddeea6d..7779490 100644 --- a/youtube-vlc.sh +++ b/youtube-vlc.sh @@ -47,10 +47,10 @@ fi video="" if [ "$suche" == "suche" ] then - if ! youtube-dl "ytsearch:$url" -i -c --socket-timeout 10000 --force-ipv4 --restrict-filenames --no-playlist $format $url; then + if ! youtube-dl "ytsearch:$url" -i -c --socket-timeout 10000 --force-ipv4 --restrict-filenames --no-playlist $format; then echo "Download fehlgeschlagen" fi - video=$(youtube-dl "ytsearch:$url" -i -c --socket-timeout 10000 --force-ipv4 --restrict-filenames --no-playlist --get-filename $format $url) + video=$(youtube-dl "ytsearch:$url" -i -c --socket-timeout 10000 --force-ipv4 --restrict-filenames --no-playlist --get-filename $format) else if ! youtube-dl -i -c --socket-timeout 10000 --force-ipv4 --restrict-filenames --no-playlist $format $url; then echo "Download fehlgeschlagen" diff --git a/youtube-vlc_windows.sh b/youtube-vlc_windows.sh index c430d90..57a5dc7 100644 --- a/youtube-vlc_windows.sh +++ b/youtube-vlc_windows.sh @@ -47,10 +47,10 @@ fi video="" if [ "$suche" == "suche" ] then - if ! youtube-dl "ytsearch:$url" -i -c --socket-timeout 10000 --force-ipv4 --restrict-filenames --no-playlist $format $url; then + if ! youtube-dl "ytsearch:$url" -i -c --socket-timeout 10000 --force-ipv4 --restrict-filenames --no-playlist $format; then echo "Download fehlgeschlagen" fi - video=$(youtube-dl "ytsearch:$url" -i -c --socket-timeout 10000 --force-ipv4 --restrict-filenames --no-playlist --get-filename $format $url) + video=$(youtube-dl "ytsearch:$url" -i -c --socket-timeout 10000 --force-ipv4 --restrict-filenames --no-playlist --get-filename $format) else if ! youtube-dl -i -c --socket-timeout 10000 --force-ipv4 --restrict-filenames --no-playlist $format $url; then echo "Download fehlgeschlagen" diff --git a/youtube.sh b/youtube.sh index c430d90..57a5dc7 100755 --- a/youtube.sh +++ b/youtube.sh @@ -47,10 +47,10 @@ fi video="" if [ "$suche" == "suche" ] then - if ! youtube-dl "ytsearch:$url" -i -c --socket-timeout 10000 --force-ipv4 --restrict-filenames --no-playlist $format $url; then + if ! youtube-dl "ytsearch:$url" -i -c --socket-timeout 10000 --force-ipv4 --restrict-filenames --no-playlist $format; then echo "Download fehlgeschlagen" fi - video=$(youtube-dl "ytsearch:$url" -i -c --socket-timeout 10000 --force-ipv4 --restrict-filenames --no-playlist --get-filename $format $url) + video=$(youtube-dl "ytsearch:$url" -i -c --socket-timeout 10000 --force-ipv4 --restrict-filenames --no-playlist --get-filename $format) else if ! youtube-dl -i -c --socket-timeout 10000 --force-ipv4 --restrict-filenames --no-playlist $format $url; then echo "Download fehlgeschlagen"