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:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user