diff --git a/mpv-xwinwrap b/mpv-xwinwrap index a7242f9..2478d4d 100755 --- a/mpv-xwinwrap +++ b/mpv-xwinwrap @@ -40,7 +40,7 @@ function video-play { } function video-validate { - if [[ "$(curl -Is $1 | head -1)" = *"200"* ]] && [[ "$1" = *"youtu"* ]]; then + if youtube-dl -e $1; then return 0 fi return 1