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:
parent
67746ee2fe
commit
09f6b2d9ec
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user