From 2cfc81d11f229a542442e4c5eba8945a3df76640 Mon Sep 17 00:00:00 2001
From: Salt <rehashedsalt@cock.li>
Date: Thu, 19 Jul 2018 17:45:01 -0500
Subject: [PATCH] tubetop: Remove validation checks Fuck it Youtube-dl
 mysteriously returns 120 in a script and 0 when run from an interactive shell
 I'm not gonna investigate why Fuck it

---
 tubetop | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/tubetop b/tubetop
index 8a06a3b..8288f9c 100755
--- a/tubetop
+++ b/tubetop
@@ -41,13 +41,6 @@ function video-play {
 	return 0
 }
 
-function video-validate {
-	if youtube-dl -e $1; then
-		return 0
-	fi
-	return 1
-}
-
 function cache-add {
 	if [[ "$cachecontent" == *"$1"* ]]; then
 		return 1
@@ -99,12 +92,6 @@ if cache-lookup-by-name "$input"; then
 	printf "Lookup successful: $input\n"
 fi
 
-if ! video-validate $input; then
-	hard-notify "Unable to Find Video" "Please verify that the URL is a valid video and try again."
-	printf "Not a valid stream: $input\n" 1>&2
-	exit 1
-fi
-
 soft-notify "Found Video" "Video $1 has been found and is buffering. It will be embedded in the desktop shortly."
 
 cache-add $input