mpv-xwinwrap: Simplify video validation

I'm retarded. No need to check the HTTP header because youtube-dl fails in that case anyway.
This commit is contained in:
Salt 2018-06-22 20:09:21 -05:00
parent 67746ee2fe
commit 09f6b2d9ec

View File

@ -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